refactored spring configuration files into resources folder.