且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将 Spring Cloud Config 与 Git 和 Vault 复合环境存储库一起使用?

更新时间:2021-07-26 10:16:12

我相信您的依赖项肯定有问题.我还设置了一个带有 git 和 vault 的 spring 云配置服务器,它工作得很好.我认为强制使用 1.3.0-BUILD.SNAPSHOT 是不够的.Spring cloud config 1.3.0-BUILD.SNAPSHOT 依赖于 spring-vault-core.您可能缺少此依赖项.这可能会导致您在评论之一中提到的 bean 创建失败.这是一个链接,指向一个带有 git 和 vault 的示例项目.请随意查看.

I believe there must be something wrong with your dependencies. I also set up a spring cloud config server with git and vault which works just fine. I think forcing usage of 1.3.0-BUILD.SNAPSHOT is not enough. Spring cloud config 1.3.0-BUILD.SNAPSHOT depends on spring-vault-core. You might be missing this dependency. And that might be causing the failing bean creation that you mentioned in one of your comments. Here is a link to a sample project with git and vault. Feel free to check it out.