| | |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.web.servlet.ServletComponentScan; |
| | | import org.springframework.cache.annotation.EnableCaching; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | 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 |
| | | @EnableWebMvc |
| | | @ServletComponentScan(basePackages = {"com.whyc.filter","com.whyc.servlet"}) |
| | | @ServletComponentScan(basePackages = {"com.whyc.filter","com.whyc.servlet","com.whyc.listener"}) |
| | | @EnableCaching |
| | | @EnableScheduling |
| | | public class Application extends WebMvcConfigurerAdapter implements WebMvcConfigurer { |
| | | //public class Application extends SpringBootServletInitializer { |
| | | |