摘要: 假设在application-xxx.properties中配置 user.name=yuhk 一、在Controller中读取 @Value("{$user.name}") private String userName; 二、static属性读取 首先,要给类加上@Component注解 然后, 阅读全文
posted @ 2019-03-31 18:11 朋克 阅读(649) 评论(0) 推荐(0) 编辑