Преглед изворни кода

忽略RocketMQ自动加载配置文件;

zlq пре 3 година
родитељ
комит
1fdf2cbb87
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.rocketmq.spring.autoconfigure.RocketMQAutoConfiguration;
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 = RocketMQAutoConfiguration.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