DilApplicationMain.java 976 B

123456789101112131415161718192021222324252627
  1. package com.steerinfo;
  2. import org.mybatis.spring.annotation.MapperScan;
  3. import org.springframework.boot.SpringApplication;
  4. import org.springframework.boot.autoconfigure.SpringBootApplication;
  5. import org.springframework.boot.web.servlet.ServletComponentScan;
  6. import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
  7. import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
  8. import org.springframework.cloud.openfeign.EnableFeignClients;
  9. import org.springframework.scheduling.annotation.EnableScheduling;
  10. /**
  11. * @Author zhangnan
  12. * @Date 2021/4/21 14:32
  13. * @Version 1.0
  14. */
  15. @SpringBootApplication
  16. @ServletComponentScan
  17. @EnableScheduling
  18. @MapperScan({"com.steerinfo.dil.mapper","com.steerinfo.route.mapper"})
  19. @EnableFeignClients(basePackages = "com.steerinfo.dil.feign")
  20. @EnableDiscoveryClient
  21. public class DilApplicationMain {
  22. public static void main(String[] args) {
  23. SpringApplication.run(DilApplicationMain.class,args);
  24. }
  25. }