![](/img/trans.png)
[英]How to disable global CORS config in Spring Cloud Gateway .yml config to allow requests from any origin?
[英]How to read multiple yml config files from spring cloud config server
我已经看到 spring 配置服务器将读取${spring.application.name}.yml
。 我的配置服务器中有两个文件,即test.yml
和test-dev.yml
。 当我运行配置客户端时,它只会选择其中一个文件。 我希望它同时选择这两个文件。
谢谢!
此配置进入您的客户端应用程序:
spring:
application:
name: <AppName>
cloud:
config:
uri: <ConfigUrl>
enabled: true
fail-fast: true
name: test,test-dev
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.