zhanghongwei1 2 years ago
parent
commit
b0bb30cb7c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/com/persagy/WorkCalendarApplication.java

+ 2 - 1
src/main/java/com/persagy/WorkCalendarApplication.java

@@ -1,5 +1,6 @@
 package com.persagy;
 
+import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@@ -12,7 +13,7 @@ import com.persagy.common.annotation.EnableIdGenerator;
 @EnableIdGenerator
 @EnableControllerLog
 @EnableDiscoveryClient
-@SpringBootApplication
+@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)
 @EnableTransactionManagement
 @EnableFeignClients(basePackages = "com.persagy.calendar.client")
 public class WorkCalendarApplication {