ソースを参照

去除sharding自动获取数据源

zlq 3 年 前
コミット
36c3289619
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2 1
      src/main/java/com/DepotIntelligentApplication.java

+ 2 - 1
src/main/java/com/DepotIntelligentApplication.java

@@ -1,5 +1,6 @@
1
 package com;
1
 package com;
2
 
2
 
3
+import org.apache.shardingsphere.spring.boot.ShardingSphereAutoConfiguration;
3
 import org.mybatis.spring.annotation.MapperScan;
4
 import org.mybatis.spring.annotation.MapperScan;
4
 import org.springframework.boot.SpringApplication;
5
 import org.springframework.boot.SpringApplication;
5
 import org.springframework.boot.autoconfigure.SpringBootApplication;
6
 import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -9,7 +10,7 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
9
 import org.springframework.web.client.RestTemplate;
10
 import org.springframework.web.client.RestTemplate;
10
 
11
 
11
 @EnableEurekaClient
12
 @EnableEurekaClient
12
-@SpringBootApplication
13
+@SpringBootApplication(exclude = ShardingSphereAutoConfiguration.class)
13
 @MapperScan(basePackages = {"com.chinaitop.depot.**.mapper"})
14
 @MapperScan(basePackages = {"com.chinaitop.depot.**.mapper"})
14
 public class DepotIntelligentApplication {
15
 public class DepotIntelligentApplication {
15
 
16