@SpringBootApplication
@ComponentScan("com.xx")
@EnableScheduling //定時任務掃描 此處用該注解,容器啟動自動掃描
public class PltxAdminApplication {
/**
* 啟動嵌入式的Tomcat並初始化Spring環境.
*
* 無 applicationContext.xml 和 web.xml, 靠下述方式進行配置:
*
* 1. 掃描當前package下的class設置自動注入的Bean<br/>
* 2. 也支持用@Bean標注的類配置Bean <br/>
* 3. 根據classpath中的三方包Class及集中的application.properties條件配置三方包,如線程池 <br/>
* 4. 也支持用@Configuration標注的類配置三方包.
*/
public static void main(String[] args) throws Exception {
SpringApplication.run(PltxAdminApplication.class, args);
}
}