摘要: 第一种使用注解:用 @Value("${xxxx}")注解 1. 用法: 从配置properties文件中读取init.password 的值。 @Value("${init.password}") private String initPwd; 2. 在spring的配置文件中加载配置文件dbco 阅读全文
posted @ 2018-03-29 09:08 高木子 阅读(2865) 评论(0) 推荐(0) 编辑