Correct some mistakes and updated spring config files