67,513
社区成员
发帖
与我相关
我的任务
分享
<context:property-placeholder ... /> is the XML equivalent to the PropertyPlaceholderConfigurer.
Example: applicationContext.xml
<context:property-placeholder location="classpath:test.properties"/>
Component class
private @Value("${propertyName}") String propertyField;