Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring cloud 升级之后默认不读取 bootstrap 文件 #17

Open
zoeminghong opened this issue Sep 17, 2021 · 0 comments
Open

Spring cloud 升级之后默认不读取 bootstrap 文件 #17

zoeminghong opened this issue Sep 17, 2021 · 0 comments

Comments

@zoeminghong
Copy link
Owner

描述:

在升级了 SC Version 2020.0.3、SB:2.5.4 后,bootstrap 文件不读取问题。

方案:

引入 spring-cloud-starter-bootstrap 依赖

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-bootstrap</artifactId>
            <version>3.0.3</version>
        </dependency>

参考文档:

https://docs.spring.io/spring-cloud-config/docs/3.0.3/reference/html/#config-first-bootstrap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant