Spring Boot 自动配置-响应式编程-022

 🤗 ApiHug × {Postman|Swagger|Api...} = 快↑ 准√ 省↓

  1. GitHub - apihug/apihug.com: All abou the Apihug   
  2. apihug.com: 有爱,有温度,有质量,有信任
  3. ApiHug - API design Copilot - IntelliJ IDEs Plugin | Marketplace

   The Next Generation API Development Platform - ApiHug

api-hug-contact

SpringBoot spring-autoconfigure-metadata.properties 配置文件揭秘: The “autoconfigure” Moduleopen in new window

spring-boot-actuator-autoconfigure-xxx.jar 包下有下面两个文件:

META-INF/spring.factories 
META-INF/spring-autoconfigure-metadata.properties

#说明

autoconfigure模块包含了库启动必须的所有信息。也可以包含配置key的定义(如@ConfigurationProperties)以及任何用于定制组件如何初始化的回调接口。

最好标识对库的依赖为可选,这样你就可以更加容易引入autoconfigure模块。如果你这样做了(指标识对库的依赖为可选),如果库没有提供,那么SpringBoot会使用默认的方式。

Spring Boot uses an annotation processor to collect the conditions on auto-configurations in a metadata file (META-INF/spring-autoconfigure-metadata.properties).

If that file is present, it is used to eagerly filter auto-configurations t

  • 20
    点赞
  • 37
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值