会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
慕星流
博客园
首页
新随笔
联系
订阅
管理
2017年11月30日
@Value属性配置 以及 spring boot1.5以上版本@ConfigurationProperties取消location注解后的替代方案
摘要: Spring Boot 入门属性配置。 @Value的配置 在这里我是先在application.properties里写的值(此处后面就出现坑) 中文设置: 新建个book实体类 (省略set...get..) 在Spring Boot里注入properties里的值很简单,只需要通过@Value
阅读全文
posted @ 2017-11-30 14:45 慕星流
阅读(4885)
评论(0)
推荐(0)
编辑