Full Spring 3.1 Config
Someone asked for my full Spring 3.1 annotation configuration. I’ve stripped all domain-specific information, but the overall structure is intact. SpringConfig.java – this is the top level class, is empty except for @ComponentScan and @Import statements. The web.xml references this. SpringMvcConfiguration – Any MVC related configuration DatabaseConfiguration @Configuration @ComponentScan(basePackageClasses = { SpringConfig.class}) @Import({ SpringMvcConfiguration.class, DatabaseConfiguration.class}) public class SpringConfig { } @Configuration @EnableWebMvc @Import({ MvcComponents.class,BeanConfiguration.class }) public class SpringMvcConfiguration extends WebMvcConfigurerAdapter { @Qualifier(“generalMapper”) […]
Full Spring 3.1 Config Continue Reading »

