3
@Value和@ConfigurationProperties注入有什么区别?为什么Value属性被验证并且ConfigurationProperties不是?为什么ConfigurationProperties未验证?
@Value和@ConfigurationProperties注入有什么区别?为什么Value属性被验证并且ConfigurationProperties不是?为什么ConfigurationProperties未验证?
@Value是一个核心容器功能,它不提供与类型安全配置属性相同的功能。这可能是...我想。我目前在spring(MVC)上工作(发现),我建议你看看spring reference (Externalized Configuration)
好的,谢谢。我会检查那篇文章:) – Kapitalny