浩晨众云网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
这篇文章将为大家详细讲解有关使用spring boot实现profiles动态切换,文章内容质量较高,因此小编分享给大家做个参考,希望大家阅读完这篇文章后对相关知识有一定的了解。
具体做法:
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