From 5cfefb5fbb5b031d153a8c27fe4c81296b7ac95d Mon Sep 17 00:00:00 2001 From: kosmosr Date: Sun, 7 Aug 2022 19:24:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0nacos-config-spring-boot?= =?UTF-8?q?=E7=89=88=E6=9C=AC=EF=BC=8C=E4=BB=A5=E8=A7=A3=E5=86=B3Receiver?= =?UTF-8?q?=E8=A2=AB=E6=8F=90=E5=89=8D=E5=88=9D=E5=A7=8B=E5=8C=96=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../austin/handler/receiver/kafka/ReceiverStart.java | 8 +------- pom.xml | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/austin-handler/src/main/java/com/java3y/austin/handler/receiver/kafka/ReceiverStart.java b/austin-handler/src/main/java/com/java3y/austin/handler/receiver/kafka/ReceiverStart.java index 0ba8242..bb60974 100644 --- a/austin-handler/src/main/java/com/java3y/austin/handler/receiver/kafka/ReceiverStart.java +++ b/austin-handler/src/main/java/com/java3y/austin/handler/receiver/kafka/ReceiverStart.java @@ -59,13 +59,7 @@ public class ReceiverStart { */ @PostConstruct public void init() { - int total = groupIds.size(); - if (nacosEnabled) { - // 当nacos开启时 会导致Receiver提前加载 所以这里getBean次数-1 - // nacos issue: https://github.com/nacos-group/nacos-spring-project/issues/249 - total -= 1; - } - for (int i = 0; i < total; i++) { + for (int i = 0; i < groupIds.size(); i++) { context.getBean(Receiver.class); } } diff --git a/pom.xml b/pom.xml index 8fca343..585f4ba 100644 --- a/pom.xml +++ b/pom.xml @@ -88,7 +88,7 @@ com.alibaba.boot nacos-config-spring-boot-starter - 0.2.1 + 0.2.12