mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-03 07:49:03 +00:00
Update samples to use @SpringBootApplication
Update the relevant samples to use the new @SpringBootApplication annotation. Closes gh-1842
This commit is contained in:
+2
-6
@@ -22,14 +22,10 @@ import javax.servlet.ServletContextListener;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Configuration
|
||||
@EnableAutoConfiguration
|
||||
@ComponentScan
|
||||
@SpringBootApplication
|
||||
public class SampleTomcatApplication {
|
||||
|
||||
private static Log logger = LogFactory.getLog(SampleTomcatApplication.class);
|
||||
|
||||
Reference in New Issue
Block a user