How SpringBoot project to configure it to load custom profiles

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:
Here Insert Picture Description
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

要是还有不太明白的地方请留言,评论必回
要是对我的文章感兴趣的话,关注一下吧,谢谢!

Previous: PostgreSQL modify the increment initiation id number

Next: FTPClient file upload problem

Guess you like

Origin blog.csdn.net/chen_2890/article/details/94757225