這篇文章將為大家詳細講解有關(guān)使用spring boot實現(xiàn)profiles動態(tài)切換,文章內(nèi)容質(zhì)量較高,因此小編分享給大家做個參考,希望大家閱讀完這篇文章后對相關(guān)知識有一定的了解。
具體做法:
1、首先在pom中添加profiles:
dev true dev org.springframework.boot spring-boot-devtools true org.springframework.boot spring-boot-starter-undertow prod org.springframework.boot spring-boot-starter-undertow prod