<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