Application of density functional theory in nuclear structure