Springboot获取配置文件属性的方法
摘要:
pom配置 html内容 1 通过注解 1.1 在properties文件下配置属性 1.2 利用@Value注解将对应的属性注入到field上 1.3 请求结果如下 2 通过PropertiesLoaderUtils 利用org.springframework.core.io.support包下的 阅读全文
posted @ 2019-03-06 16:36 zad27 阅读(29474) 评论(0) 推荐(0)