<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
在 maven 中添加此依赖即可
You can easily generate your own configuration meta-data file from items annotated with @ConfigurationProperties by using the spring-boot-configuration-processor jar. The jar includes a Java annotation processor which is invoked as your project is compiled. To use the processor, simply include spring-boot-configuration-processor as an optional dependency, for example with Maven you would add:
Appendix B. Configuration meta-data
https://docs.spring.io/spring-boot/docs/1.5.4.RELEASE/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor
通过使用spring-boot-configuration-processor JAR文件,可以轻松地从使用@ConfigurationProperties注解的项目项生成配置元数据文件。该JAR包含了一个Java注解处理器,在项目编译过程中被调用。只需将spring-boot-configuration-processor作为可选依赖项添加到项目中。
57

被折叠的 条评论
为什么被折叠?



