Fork me on GitHub
摘要: 1. 使用@Value注解,可以直接将属性值注入到你的beans中,并通过Spring 的Environment抽象或绑定到结构化对象来访问。 2. 配置随机值 3. @ConfigurationProperties 4.Profiles Spring Profiles提供了一种隔离应用程序配置的方 阅读全文
posted @ 2017-10-25 18:38 纳兰性急 阅读(232) 评论(0) 推荐(0) 编辑