springboot配置多个yml文件

新接触了springboot项目,yml一大堆,启动不知道用的哪个,各种百度后:

<profiles>
<profile>
<id>dev</id>
<activation>
<!--默认激活-->
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<spring.profiles.active>dev</spring.profiles.active>
</properties>
</profile>
<profile>
<id>prod</id>
<properties>
<spring.profiles.active>prod</spring.profiles.active>
</properties>
</profile>
</profiles>
---------------------
原文:https://blog.csdn.net/m0_37054738/article/details/81388925

原文地址:https://www.cnblogs.com/nankeyimengningchenlun/p/10935899.html