当前位置: 首页 > news >正文

springboot2.4之后无需再手动移除spring-boot-configuration-processor

在springboot2.3.4.RELEASE官方文档中,说到如果已经配置了@ConfigurationProperties,那么需要配置spring-boot-maven-plugin以防spring-boot-configuration-processor被打包到java文件中,减少空间占用。

来源:https://docs.spring.io/spring-boot/docs/2.3.4.RELEASE/reference/html/appendix-configuration-metadata.html#configuration-metadata-annotation-processor-setup


但在springboot2.5文档(当前版本)就没用提到这一点了。查看2.4版本更新记录(https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.4-Release-Notes):

找到了答案:

When generating runnable Spring Boot jars, empty starter dependencies will now be automatically removed. Since most starters only provide transitive dependencies, there is little point in packaging them in the final jar.

Spring Boot annotation processors are also removed as well as they are only useful during the build. These are spring-boot-autoconfigure-processor and spring-boot-configuration-processor.

因为Spring Boot annotation processors只是在开发阶段被用到,所以springboot自动移除了,无需再手动移除了。

相关文章:

  • Deprecated configuration property ‘spring.resources.static-locations‘
  • 谷歌浏览器地址栏快捷键
  • 断网无法解析服务器DNS地址的解决方法之一
  • ob混淆解密在线工具
  • reres+python 将服务器文件映射到本地
  • 开发者工具一直卡在debugger
  • 鼠标垫防止移位乱跑
  • flash按钮上的字怎么改
  • mac idea搜索classes的快捷键
  • mac打开盖子与合上后外接显示器颜色不一样
  • StringUtils.isEmpty is deprecated的原因
  • 京造k8右侧shift以及回车问题
  • 实现singleton单例模式 -- java代码
  • 每个数字最多只要交换两次就能找到属于它自己的位置?
  • 数组中重复的数字 -- java
  • 《Javascript高级程序设计 (第三版)》第五章 引用类型
  • canvas实际项目操作,包含:线条,圆形,扇形,图片绘制,图片圆角遮罩,矩形,弧形文字...
  • co模块的前端实现
  • CSS相对定位
  • Java 多线程编程之:notify 和 wait 用法
  • JavaScript类型识别
  • KMP算法及优化
  • Python学习之路16-使用API
  • React-Native - 收藏集 - 掘金
  • WordPress 获取当前文章下的所有附件/获取指定ID文章的附件(图片、文件、视频)...
  • 产品三维模型在线预览
  • 浮动相关
  • - 概述 - 《设计模式(极简c++版)》
  • 区块链将重新定义世界
  • 如何合理的规划jvm性能调优
  • 深入体验bash on windows,在windows上搭建原生的linux开发环境,酷!
  • 适配iPhoneX、iPhoneXs、iPhoneXs Max、iPhoneXr 屏幕尺寸及安全区域
  • 通过几道题目学习二叉搜索树
  • 责任链模式的两种实现
  • 《码出高效》学习笔记与书中错误记录
  • 阿里云ACE认证学习知识点梳理
  • 阿里云IoT边缘计算助力企业零改造实现远程运维 ...
  • #### go map 底层结构 ####
  • #if 1...#endif
  • #pragma pack(1)
  • #我与Java虚拟机的故事#连载13:有这本书就够了
  • $.ajax()
  • (07)Hive——窗口函数详解
  • (ibm)Java 语言的 XPath API
  • (LNMP) How To Install Linux, nginx, MySQL, PHP
  • (第一天)包装对象、作用域、创建对象
  • (力扣题库)跳跃游戏II(c++)
  • (论文阅读31/100)Stacked hourglass networks for human pose estimation
  • (原創) 系統分析和系統設計有什麼差別? (OO)
  • (转载)Google Chrome调试JS
  • .NET 反射 Reflect
  • .net 简单实现MD5
  • .NET 设计模式—适配器模式(Adapter Pattern)
  • .NET是什么
  • .net图片验证码生成、点击刷新及验证输入是否正确