标签:
spring配置
<context:property-placeholder location="classpath:config.properties" ignore-resource-not-found="true" ignore-unresolvable="true"/>
config.properties
jdbc.password=111111
控制器读取
@Value("${jdbc.password}") private String JDBCPassword;
标签:
原文地址:http://www.cnblogs.com/jinjixia/p/5261555.html