ManageApplication.java 1022 B

123456789101112131415161718192021222324252627282930313233
  1. package com.fdkankan.manage;
  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.cloud.client.discovery.EnableDiscoveryClient;
  7. import org.springframework.context.annotation.ComponentScan;
  8. import org.springframework.scheduling.annotation.EnableScheduling;
  9. import org.springframework.transaction.annotation.EnableTransactionManagement;
  10. /**
  11. * <p>
  12. * TODO
  13. * </p>
  14. *
  15. * @author dengsixing
  16. * @since 2022/5/27
  17. **/
  18. @EnableTransactionManagement//开启事务
  19. @EnableDiscoveryClient
  20. @EnableScheduling
  21. @ComponentScan(basePackages = {"com.fdkankan.*"})
  22. @MapperScan("com.fdkankan.**.mapper")
  23. @ForestScan(basePackages = "com.fdkankan.manage.httpclient")
  24. @SpringBootApplication
  25. public class ManageApplication {
  26. public static void main(String[] args) {
  27. SpringApplication.run(ManageApplication.class, args);
  28. }
  29. }