從Spring Boot 2.2.x升級2.6.x,Spring Cloud升級2021.0.0
- 默認禁用循環依賴,使用
spring.main.allow-circular-references=true
允許支持循環依賴(很長時間項目了)。 - 2.5.x開始默認禁用了actuator的
/info
端點。從2.3.x開始支持使用/health/liveness
、/health/readiness
支持k8s健康探測,使用management.endpoint.health.probes.enabled=true
開啓。 - error 頁面(或者json)默認不顯示
message
字段,從2.3.x開始。使用server.error.include-message=always
開啓。