🤗 ApiHug × {Postman|Swagger|Api...} = 快↑ 准√ 省↓
- GitHub - apihug/apihug.com: All abou the Apihug
- apihug.com: 有爱,有温度,有质量,有信任
- ApiHug - API design Copilot - IntelliJ IDEs Plugin | Marketplace
The Next Generation API Development Platform - ApiHug
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