摘要: 1.读取application.properties 使用:在需要的地方 注入该文件,@Autowired xxxConfig xxx; 调用xxx.getXxx()方法即可 不同运行环境使用不同配置文件: 在application.properties中添加 application-dev.pro 阅读全文
posted @ 2016-06-04 12:17 until-u 阅读(523) 评论(0) 推荐(0) 编辑