| 123456789101112131415161718192021222324252627282930 |
- package com.sckw.auth;
- import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.autoconfigure.SpringBootApplication;
- import org.springframework.boot.web.servlet.ServletComponentScan;
- import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
- import org.springframework.cloud.openfeign.EnableFeignClients;
- /**
- * @Author xucaiqin
- * @date 2023-06-01 15:02:02
- */
- @EnableDubbo
- @EnableFeignClients({"com.sckw.*.api.feign"})
- @EnableDiscoveryClient
- @SpringBootApplication(scanBasePackages = {"com.sckw.core.*", "com.sckw.redis","com.sckw.auth.*"})
- @ServletComponentScan("com.sckw.core.filter")
- public class AuthApplication {
- public static void main(String[] args) {
- // 关闭nacos日志
- System.setProperty("nacos.logging.default.config.enabled", "false");
- try {
- SpringApplication.run(AuthApplication.class, args);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
|