AuthApplication.java 1.0 KB

123456789101112131415161718192021222324252627282930
  1. package com.sckw.auth;
  2. import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
  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.discovery.EnableDiscoveryClient;
  7. import org.springframework.cloud.openfeign.EnableFeignClients;
  8. /**
  9. * @Author xucaiqin
  10. * @date 2023-06-01 15:02:02
  11. */
  12. @EnableDubbo
  13. @EnableFeignClients({"com.sckw.*.api.feign"})
  14. @EnableDiscoveryClient
  15. @SpringBootApplication(scanBasePackages = {"com.sckw.core.*", "com.sckw.redis","com.sckw.auth.*"})
  16. @ServletComponentScan("com.sckw.core.filter")
  17. public class AuthApplication {
  18. public static void main(String[] args) {
  19. // 关闭nacos日志
  20. System.setProperty("nacos.logging.default.config.enabled", "false");
  21. try {
  22. SpringApplication.run(AuthApplication.class, args);
  23. } catch (Exception e) {
  24. e.printStackTrace();
  25. }
  26. }
  27. }