基于Spring Boot 2.6.1的Spring Cloud 2021.0.0发布了,需要注意两点:
项目的循环注入
假如项目中有循环依赖注意,需要添加配置:spring.main.allow-circular-references: true
内置数据配置
假如项目使用了数据库,需要添加配置:spring.datasource.embedded-database-connection: none
spring:
main:
allow-circular-references: true
datasource:
embedded-database-connection: none
网友评论