【发布时间】:2023-03-28 23:50:01
【问题描述】:
如何访问<context:property-placeholder> 在BeanDefinitionRegistryPostProcessor.postProcessBeanDefinitionRegistry 中加载的属性。
我无法使用带有@Value 注释的字段,因为它们似乎没有被初始化(它们的值为空)。
【问题讨论】:
-
显示一些东西
When I use @Value, it does not load the properties.
标签: spring spring-bean property-placeholder