Spring Boot
文章平均质量分 81
laobenbenben
这个作者很懒,什么都没留下…
展开
-
Spring Boot 01 加载配置文件和获取key/value值
1、Spring Boot 默认配置文件的位置和名字 (1)、默认放置配置文件的地方是:classpath: 和classpath:config (2)、默认名字是:application.properties原创 2017-11-01 21:04:47 · 3420 阅读 · 0 评论 -
Spring Boot 02 EnvironmentPostProcessor接口
EnvironmentPostProcessor是Spring Boot的一个拓展接口,我们可以通过这个接口来添加配置文件 这是源码的解释,说明了该接口的实现类要在classpath:META-INT/spring.factories里面注册 Allows for customization of the application's {@link Environment} prior to t原创 2017-11-02 18:47:00 · 1264 阅读 · 0 评论