是否有可能或解决方法告诉 Spring Config Server 从自身获取配置?我有一些适用于所有 Spring Boot 应用程序的通用配置,具体取决于配置文件,并且我希望配置服务器能够访问它们而无需复制粘贴。
最佳答案
来自docs :
An optional property that can be useful in this case is
spring.cloud.config.server.bootstrap
which is a flag to indicate that the server should configure itself from its own remote repository.
因此设置spring.cloud.config.server.bootstrap=true
。
关于java - Spring Config Server 是否有可能从自身获取配置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37861560/