我的春季云配置服务器未从类路径中选取 yml 文件
spring:
profiles:
active: native
cloud:
config:
server:
native:
search-locations: file:///C:/Users/Arun/git/MicroService_sample/config-server/src/main/resources/application-local.yml
得到下面的结果,结果保持不变,即使我使用search-locations: classpath:/configserver-local.yml
结果
{"name":"configserver","profiles":["local"],"label":null,"version":"d1da013b1365b9001a5609e12c8590c875d782f4","state":null,"propertySources":[]}
端点 : http://localhost:8080/configserver/local
我没有找到任何日志,用于在应用程序启动时选择yml文件
一只萌萌小番薯
明月笑刀无情
相关分类