摘要: 史上最简单的 SpringCloud 教程 : http://blog.csdn.net/forezp/article/details/70148833#comments 阅读全文
posted @ 2017-09-21 21:55 简笔话_Golden 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 配置文件: 方式一: @Value 前提: 使用: 方式二: 前提: 使用: @ConfigurationProperties 方式三:获得Environment 的对象 扩展: 使用@PropertySource注解加载自定义的配置文件,但该注解无法加载yml配置文件。然后可以使用@Value注解 阅读全文
posted @ 2017-09-21 10:59 简笔话_Golden 阅读(16889) 评论(0) 推荐(0) 编辑