1 Star 0 Fork 1

逸飞兮/spring-boot-source-example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

SpringBoot配置迁移

  1. 引入依赖:spring-boot-properties-migratorspring-boot-configuration-processor(生成元数据文件)
  2. 元数据文件spring-configuration-metadata.json 中弃用属性名对应的 properties 中必须有 deprecation(在additional-spring-configuration-metadata.json 中添加,参考: SpringBoot 配置提示功能
  3. deprecation 中需指定 levelerror
  4. deprecation 中需指定 replacement
  5. replacement 对应的属性配置在元数据文件中存在,与弃用属性兼容
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/lw888/spring-boot-source-example.git
git@gitee.com:lw888/spring-boot-source-example.git
lw888
spring-boot-source-example
spring-boot-source-example
master

搜索帮助