move spring configuration to resources folder.