By assuming the ion sphere model, the self-consistent field method for the Poisson-Boltzmann equation and the Dirac equation is used to calculate the energy levels of He-like titanium immersed in hot and dense plasmas. Consequently, the spectral shifts of the intercombination line and the resonance line and the shifts of the exchange energy of He-like titanium in hot and dense plasmas are studied. The results show that the two electronic dipole transitions red shift nearly linearly with the increase of plasma electron density. The formula of the linear relationship is found. The results may be useful in developing the new method of dense plasma diagnosis.