Spring ioc for training