configure spring after initializing the framework