比如我的项目下有2个.properties文件,一个是application.properties
,一个是application-local.properties
,在本地的时候想指定用application-local.properties
,那么
那么如何在本地以某个properties配置文件启动呢?
解决方案如下:
配置如下:
--spring.profiles.active=local
比如我的项目下有2个.properties文件,一个是application.properties
,一个是application-local.properties
,在本地的时候想指定用application-local.properties
,那么
那么如何在本地以某个properties配置文件启动呢?
解决方案如下:
配置如下:
--spring.profiles.active=local