spring cloud config server 读取本地配置文件时异常.
为了区分开发环境和测试环境,所以采用了这种方式.
下面的是application test 的配置.
但是启动项目就报错,You need to configure a uri for the git repository
最后发现在application.properties 中使用了spring.profiles.active=test 导致test 配置文件的spring.profiles.active 失效,就变成了默认从git 上读取,所以才会报错.
难受,