Skip to content

使用 spring-boot-properties-migrator 模块

该模块可以在启动时分析你的应用程序环境并打印诊断结果,同时在运行时临时迁移配置属性。你可以将它作为依赖添加到项目中以辅助升级:

xml
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-properties-migrator</artifactId>
    <scope>runtime</scope>
</dependency>

完成迁移后,记得移除这个依赖。

Spring Boot 3.0 发布说明