Bläddra i källkod

去除sharding自动获取数据源

zlq 3 år sedan
förälder
incheckning
36c3289619
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      src/main/java/com/DepotIntelligentApplication.java

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

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