I\'m using Spring 3.1 and bootstrapping an application using the @Configuration and @ComponentScan attributes.
@Configuration
@ComponentScan
The actual start is done wit
make sure you have added this dependency in your pom.xml
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
I use:
@ComponentScan(basePackages = {"com.package1","com.package2","com.package3", "com.packagen"})