更新时间:2022-04-01 21:58:22
用于启用非对称加密的引导程序配置不再默认启用.如果您的项目需要它,可以通过属性或新启动器重新启用它.可以找到指南[这里][1]:https://github.com/spring-cloud/spring-cloud-release/wiki/Spring-Cloud-2020.0-Release-Notes#break-changes
Bootstrap configuration you using to enable asymmetric encryption is no longer enabled by default. If your project requires it, it can be re-enabled by properties or by a new starter. Can find out guideline [here] [1]: https://github.com/spring-cloud/spring-cloud-release/wiki/Spring-Cloud-2020.0-Release-Notes#breaking-changes
要在高于 2.3.x 的 spring boot 版本中启用 bootstrap,我们需要添加 #SpringCloud 引入的新启动器依赖项.
To enable the bootstrap in spring boot version greater than 2.3.x we need to add new starter dependency introduced by #SpringCloud.
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
<version>3.0.1</version>
</dependency>