一、#{beanID['propertiesName']}方式
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><property name="fileEncoding" value="utf-8" /><property name="locations"><list><value>classpath:/config/pay-alipay.properties</value></list></property> </bean>
@Value("#{propertyConfigurer['workFlow.url']}") private String flowUrl;
二、${'propertiesName'}方式
@Value("${material.qrCode.target.url}")
private String qrCodeUrl;