繁体   English   中英

@ConfigurationProperties 注释警告

[英]Warning with @ConfigurationProperties Annotation

我可以看到带有@ConfigurationProperties 注释的以下警告

When using @ConfigurationProperties it is recommended to add 'spring-boot-configuration-processor' to your classpath to generate configuration metadata

一切正常。 它的意思是什么?

如果您向“spring-boot-configuration-processor”添加可选依赖项,您的模块将保存在编译时生成的元数据文件,其中包含有关您的属性的详细信息。 然后 IDE 可以选择它以向您显示内容辅助/自动完成。 STS、Intellij IDEA 和 Netbeans 都有这样的支持。 它是一个注释处理器,用于生成有关应用程序中使用@ConfigurationProperties注释的类的元数据。

更多信息: 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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM