springboot之多環境配置--dev、test、prod

application-dev.properties:開發環境A application-test.properties:測試環境B application-prod.properties:生產環境 Cjava 項目內使用:在你的名字爲application的文件的中寫上:spring.profiles.active=dev(由於你的application是你的springboot默認的主配置文件
相關文章
相關標籤/搜索