On-line project development, test, profile information development environment is not the same, SpringBoot support for custom configuration files to facilitate our projects are applicable in a variety of environments, as:
how to get the project started when SpringBoot also load custom profiles of it? For example, when you start the development environment while loading configuration file application-dev.yml
write configuration information related to the application.yml configuration file, as follows:
spring:
profiles:
active: dev
要是还有不太明白的地方请留言,评论必回
要是对我的文章感兴趣的话,关注一下吧,谢谢!