在SPRING 配置中加入
<context:property-placeholder properties-ref="synProperties" />
<util:properties id="synProperties" location="classpath:synInterfaceConfiguration.properties" />
@Value("#{synProperties['path']}")
private String path;
在SPRING 配置中加入
<context:property-placeholder properties-ref="synProperties" />
<util:properties id="synProperties" location="classpath:synInterfaceConfiguration.properties" />
@Value("#{synProperties['path']}")
private String path;