在部署springcloud微服务的时候,使用了SR2版本,出现spring默认数据源Hikari注入的循环依赖问题

最后是如何解决的呢?

在当前微服务中添加

spring:
  cloud:
    refresh:
      refreshable: none

即可

 

GitHub 加速计划 / sp / spring-boot
73.97 K
40.4 K
下载
spring-projects/spring-boot: 是一个用于简化Spring应用开发的框架。适合用于需要快速开发企业级Java应用的项目。特点是可以提供自动配置、独立运行和内置的Tomcat服务器,简化Spring应用的构建和部署。
最近提交(Master分支:10 天前 )
6346d4fd A task's last execution is absent if it has not yet been executed. This commit updates the documentation test to accommodate this possibility. See gh-42351 7 小时前
627c6916 See gh-42295 7 小时前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐