| | |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
| | | import org.springframework.boot.web.servlet.ServletComponentScan; |
| | | import org.springframework.web.servlet.config.annotation.EnableWebMvc; |
| | | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; |
| | | import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; |
| | | |
| | | @SpringBootApplication(exclude = DataSourceAutoConfiguration.class) |
| | | @EnableWebMvc |
| | | @ServletComponentScan(basePackages = {"com.whyc.filter"}) |
| | | public class App extends WebMvcConfigurerAdapter implements WebMvcConfigurer { |
| | | public static void main(String[] args) { |
| | | SpringApplication.run(App.class, args); |