1.remove the unused code of spring