我已经开始使用和Spring负载平衡器了。但是,当我试图通过设置configserver来为spring.cloud.config.discovery.enabled=true进行发现时,我会得到以下错误
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.cloud.client.discovery.Discovery
我在用spring-cloud-starter-vault-config从保险库获取秘密。我可以用Config First Bootstrap让它工作得很好。creating bean with name 'vaultPropertySourceLocator' defined in class path resource [org/springframework/cloudorg.springframework.beans.factory.NoSuchBeanDefinitionException:
为了实现这一点,我正在尝试使用springcloud。我正在尝试将配置服务器嵌入到具有JDBC后端的spring引导应用程序中,以便应用程序可以通过从DB读取属性来配置自己。at org.springframework.util.Assert.state(Assert.java:73)
at org.springframework.cloud.config.server.environment.JGitEnvironmentRepository.afterPropertiesSet(JGitEnvironment
我正在尝试实现一个Cloud Config客户端。class MyObject {}spring.profiles.active= #Here I should get the value from the bean spring.profiles.active= ${myObject.environment