FileApplication.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.sckw.file;
  2. import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
  3. import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
  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.cloud.openfeign.EnableFeignClients;
  8. /**
  9. * @author lfdc
  10. * @version 1.0
  11. * @className FileApplication
  12. * @description 文件上传下载启动类
  13. * @company sckw
  14. * @date 2023-06-02 17:06:43
  15. */
  16. //@MapperScan("com.sckw.file.*.mapper")
  17. @EnableDubbo
  18. @EnableFeignClients({"com.sckw.*.api.feign"})
  19. @EnableDiscoveryClient
  20. @EnableAutoDataSourceProxy
  21. @SpringBootApplication
  22. public class FileApplication {
  23. public static void main(String[] args) {
  24. // 关闭nacos日志
  25. System.setProperty("nacos.logging.default.config.enabled", "false");
  26. try {
  27. SpringApplication.run(FileApplication.class, args);
  28. } catch (Exception e) {
  29. e.printStackTrace();
  30. }
  31. }
  32. }