spring-boot結合maven配置不同環境的profile

1、在spring-boot中新建配置文件 spring-boot不同環境配置文件格式爲application-{profile}.yml 說明:      如果application.yml中的配置和application-{profile}.yml相沖突時,application.yml中的配置會被覆蓋掉。 2、在application.yml中增加屬性 spring: profiles: a
相關文章
相關標籤/搜索