摘要: 1.在各个模块的resource下建立多yml,格式application-XXX.yml,如: 2.在父pom.xml中,添加: <!--profiles 管理多配置文件--> <profiles> <!--dev--> <profile> <id>dev</id> <properties> <p 阅读全文
posted @ 2021-07-10 00:40 chris丶94 阅读(279) 评论(0) 推荐(0)
摘要: 1.引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> </dependency> 2.自定义属性类,使用 阅读全文
posted @ 2021-07-10 00:28 chris丶94 阅读(521) 评论(0) 推荐(0)