Understanding spring @Configuration class
Migrating XML to @Configuration It is possible to migrate the xml to a @Configuration in a few steps: Create a @Configuration annotated class: @Configuration public class MyApplicationContext { } For each <bean> tag create a method annotated with @Bean: @Configuration public class MyApplicationContext { @Bean(name = “someBean”) public SomeClass getSomeClass() { return new SomeClassImpl(someInterestingProperty); // … Read more