spring 云配置与本地属性

问题描述 投票:0回答:1

我有一个带有

application.yaml
的 Spring Boot 应用程序,我还要打开
Spring Cloud Config Server

问题是:上面这2个属性中哪些属性具有优先权?

spring spring-boot spring-cloud-config spring-properties
1个回答
0
投票

Spring 应用程序可以使用 Config Server 作为属性源。

来自配置服务器的属性将覆盖本地定义的属性(例如通过类路径中的

application.yml

© www.soinside.com 2019 - 2024. All rights reserved.