Explorar o código

修改测试环境配置文件

tianboguang %!s(int64=2) %!d(string=hai) anos
pai
achega
78272d4b56

+ 0 - 2
src/main/java/com/fdkankan/modeling/ModelingApplication.java

@@ -3,13 +3,11 @@ package com.fdkankan.modeling;
 import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.context.annotation.ComponentScan;
 import org.springframework.scheduling.annotation.EnableScheduling;
 
 @SpringBootApplication
 @EnableScheduling
-@EnableDiscoveryClient
 @ComponentScan(basePackages = {"com.fdkankan.*"})
 @MapperScan("com.fdkankan.**.mapper")
 public class ModelingApplication {

+ 6 - 9
src/main/java/com/fdkankan/modeling/receiver/RabbitMqListener.java

@@ -59,14 +59,11 @@ import java.util.concurrent.TimeoutException;
 @Component
 public class RabbitMqListener {
 
-    @Lazy
-    @Value("${queue.modeling.modeling-call}")
+    @Value("${queue.modeling.modeling-call:modeling-call}")
     private String queueModelingCall;
-    @Lazy
-    @Value("${queue.modeling.modeling-dt}")
+    @Value("${queue.modeling.modeling-dt:modeling-dt}")
     private String queueModelingDt;
-    @Lazy
-    @Value("${queue.modeling.modeling-post}")
+    @Value("${queue.modeling.modeling-post:modeling-post}")
     private String queueModelingPost;
 
     @Autowired
@@ -96,9 +93,9 @@ public class RabbitMqListener {
      * @throws Exception
      */
     @RabbitListener(
-        queuesToDeclare = @Queue("modeling-call"),
-        concurrency = "1",
-        priority = "${mq.consumerPriority}"
+            queuesToDeclare = @Queue("${queue.modeling.modeling-call:modeling-call}"),
+            concurrency = "${maxThread.modeling.modeling-call:1}",
+            priority = "${mq.consumerPriority}"
     )
     public void buildSceneHandler(Channel channel, Message message, @Header(AmqpHeaders.DELIVERY_TAG) long deliveryTag) throws Exception {
         SysConstants.SYSTEM_BUILDING = true;

+ 0 - 5
src/main/resources/bootstrap-test.yml

@@ -32,11 +32,6 @@ spring:
             group: DEFAULT_GROUP
             refresh: true
 
-          - data-id: common-fyun-config.yaml
-            group: DEFAULT_GROUP
-            refresh: true
-
-
 #management:
 #  endpoints:
 #    web: