Spring应用程序配置文件名称建议

时间:2018-09-06 07:02:25

标签: spring spring-boot

创建多个对等配置文件的标准命名约定是什么。

application-peer1-test.propertiesapplication-peer1_test.properties

1 个答案:

答案 0 :(得分:2)

配置文件的命名由您决定。

我认为在这种情况下,最佳做法是不要混合使用不同的方法,而最佳名称应该是application-peer1-test.properties