[英]Warning with @ConfigurationProperties Annotation
I Can see the following warning with @ConfigurationProperties Annotation我可以看到带有@ConfigurationProperties 注释的以下警告
When using @ConfigurationProperties it is recommended to add 'spring-boot-configuration-processor' to your classpath to generate configuration metadata
Everything working fine.一切正常。 What it meant for?
它的意思是什么?
If you add an optional dependency to the “spring-boot-configuration-processor”, your module will hold a meta-data file that is generated at compile time with details about your properties.如果您向“spring-boot-configuration-processor”添加可选依赖项,您的模块将保存在编译时生成的元数据文件,其中包含有关您的属性的详细信息。 IDEs can then pick that up to show you content assist/auto-completion.
然后 IDE 可以选择它以向您显示内容辅助/自动完成。 STS, Intellij IDEA and Netbeans have such support .
STS、Intellij IDEA 和 Netbeans 都有这样的支持。 It is an annotation processor that generates metadata about classes in your application that are annotated with
@ConfigurationProperties
.它是一个注释处理器,用于生成有关应用程序中使用
@ConfigurationProperties
注释的类的元数据。
More info here: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#configuration-metadata更多信息: http : //docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#configuration-metadata
https://docs.spring.io/spring-boot/docs/2.1.1.RELEASE/reference/htmlsingle/#configuration-metadata-annotation-processor https://docs.spring.io/spring-boot/docs/2.1.1.RELEASE/reference/htmlsingle/#configuration-metadata-annotation-processor
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.