摘要: 这里介绍两种在代码中获取properties文件属性的方法。 使用@Value注解获取properties文件属性: 1.因为在下面要用到Spring的<util />配置,所以,首先要在applicationContext.xml中引入其对应的命名空间: 2.创建properties文件并增加内容 阅读全文
posted @ 2017-02-14 09:36 大象踢足球 阅读(16552) 评论(0) 推荐(0) 编辑