在controller中用@value读取配置文件的方法
project.properties文件#RongYun
APP_KEY=123456
APP_SECRET=123456如果是在controller中获取须在springMvc.xml中配置再次配置加载属性文件<!-- 加载配置文件 -->
<context:property-placeholder location="classpath:resource/*.properties" />
原创
2017-01-14 17:48:53 ·
2215 阅读 ·
0 评论