SceneApplication.java 939 B

1234567891011121314151617181920212223
  1. package com.fdkankan.scene;
  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. @SpringBootApplication
  11. @EnableTransactionManagement//开启事务
  12. @EnableDiscoveryClient
  13. @EnableScheduling
  14. @ComponentScan(basePackages = {"com.fdkankan.*"})
  15. @MapperScan("com.fdkankan.**.mapper")
  16. @ForestScan(basePackages = "com.fdkankan.scene.httpclient")
  17. public class SceneApplication {
  18. public static void main(String[] args) {
  19. SpringApplication.run(SceneApplication.class, args);
  20. }
  21. }