2023年7月11日

SpringBoot使用@PropertySource读取 properties 配置

摘要: ## SpringBoot使用@PropertySource读取 properties 配置 ### properties配置文件 在resources文件夹下,新建一个文件 property-demo.properties, 示例如下: ``` my.config.test.name=wu my. 阅读全文

posted @ 2023-07-11 13:55 乐之者v 阅读(243) 评论(0) 推荐(0) 编辑

maven/ SpringBoot 配置profile指定环境

摘要: ### maven 的 pom.xml 配置profile指定环境 ``` dev dev true test test prod prod ``` ### SpringBoot 获取 maven 配置的环境 在 application.properties 中添加以下配置,获取配置的环境: 可以通 阅读全文

posted @ 2023-07-11 11:23 乐之者v 阅读(500) 评论(0) 推荐(0) 编辑

导航