Application.java 707 B

12345678910111213141516171819
  1. package com.fdkankan.download;
  2. import com.dtflys.forest.springboot.annotation.ForestScan;
  3. import org.mybatis.spring.annotation.MapperScan;
  4. import org.springframework.boot.SpringApplication;
  5. import org.springframework.boot.autoconfigure.SpringBootApplication;
  6. import org.springframework.context.annotation.ComponentScan;
  7. import org.springframework.scheduling.annotation.EnableAsync;
  8. @SpringBootApplication
  9. @ForestScan(basePackages = "com.fdkankan.download.httpclient")
  10. @MapperScan("com.fdkankan.**.mapper")
  11. @ComponentScan(basePackages = {"com.fdkankan.*"})
  12. @EnableAsync
  13. public class Application {
  14. public static void main(String[] args) {
  15. SpringApplication.run(Application.class, args);
  16. }
  17. }