您好,登錄后才能下訂單哦!
本篇內容介紹了“spring cloud集成nacos中的坑有哪些”的有關知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領大家學習一下如何處理這些情況吧!希望大家仔細閱讀,能夠學有所成!
同步下給官網給出問題描述
https://github.com/alibaba/nacos/issues/2684
頻繁的同步刷新nacos日志-get changedGroupKeys
[2021-04-18 11:01:24,501] [INFO ][com.alibaba.nacos.client.Worker.longPolling.fixed-nacos1.kcnf.com_8849-dev] c.a.n.client.config.impl.ClientWorker 522 [,,] -- [] get changedGroupKeys:[] [2021-04-18 11:01:54,014] [INFO ][com.alibaba.nacos.client.Worker.longPolling.fixed-nacos1.kcnf.com_8849-dev] c.a.n.client.config.impl.ClientWorker 522 [,,] -- [] get changedGroupKeys:[] [2021-04-18 11:02:23,522] [INFO ][com.alibaba.nacos.client.Worker.longPolling.fixed-nacos1.kcnf.com_8849-dev] c.a.n.client.config.impl.ClientWorker 522 [,,] -- [] get changedGroupKeys:[] [2021-04-18 11:02:53,031] [INFO ][com.alibaba.nacos.client.Worker.longPolling.fixed-nacos1.kcnf.com_8849-dev] c.a.n.client.config.impl.ClientWorker 522 [,,] -- [] get changedGroupKeys:[]
nacos 服務端版本為1.4.1
依賴的版本為
后續參照官網調整版本
https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E https://start.spring.io/actuator/info
調整pom依賴 nacos-client版本為1.4.1 如下:
<dependencyManagement> <dependencies> <!--提供spring cloud 相關pom依賴聲明,方便后續依賴注入--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>Hoxton.SR8</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.2.RELEASE</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-alibaba-dependencies</artifactId> <version>2.2.5.RELEASE</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-dependencies</artifactId> <version>2.3.0</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.apache.dubbo</groupId> <artifactId>dubbo-spring-boot-starter</artifactId> <version>2.7.8</version> </dependency> </dependencies> </dependencyManagement>
“spring cloud集成nacos中的坑有哪些”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識可以關注億速云網站,小編將為大家輸出更多高質量的實用文章!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。