spring-cloud-config 相关问题

Spring Cloud Config为分布式系统中的外部化配置提供服务器和客户端支持。

在 Spring Cloud 配置服务器中转义登录

我有spring cloud配置服务器,它为rabbit提供密码。密码包含“@”。当我使用 static appliation.yaml 运行应用程序时,我必须用 '' 包围值 春天: 兔子MQ:

回答 1 投票 0

无法使用执行器刷新来更新值配置服务器

当我尝试使用执行器/刷新刷新 git 上的配置服务器时遇到问题 这是我在配置客户端中使用的依赖项 依赖项{ 实现 'org.springframework.boot:sprin...

回答 1 投票 0

ApplicationContext 未在 /actuator/refresh 期间为 ApplicationContextInitializer 的回调提供 application.properties 属性源

应用程序上下文的环境未在 /actuator/refresh 结束期间向 ApplicationContextInitializer 实现的回调提供基于 application.properties 的属性源...

回答 1 投票 0

Spring-boot 3 onfig 服务器客户端尝试 localhost:8888,即使 URL 已正确配置

在 stack-overflow 中也提出了同样的问题,但没有找到正确的解决方案。我的应用程序中有以下配置。它抱怨同样的问题,甚至卡住了,如果有的话

回答 1 投票 0

Spring Profile Active 未设置

我正在尝试运行以下命令来启动 springboot 应用程序 java -Dlog4j.configuration=file:///log4j.properties -Dspring.profiles.active=local -cp ./target/app-1.0.0-SNAPSHOT-jar-with-

回答 1 投票 0

spring cloud配置服务器无法绑定到gitlab

我正在使用 Spring springCloudVersion,“2021.0.3”来设置一个配置服务器,该服务器使用我的 gitlab 帐户来存储其文件。我创建了一个具有权限的部署令牌: 读取存储库、读取注册表...

回答 2 投票 0

如何在 Spring Boot 中加密 {cipher} 的值?

我知道如何使用Jasypt 但我了解到 Spring Stack 中有使用密码的替代方案: security.user.password: '{cipher}56e611ce4a99ffd99908d2c9aa1461d831722812e4370a5b6900b7ea680ae914'...

回答 2 投票 0

propertySources 显示为空(Spring Cloud 配置)

我正在尝试学习Spring Cloud。所以我使用 Spring Starter 创建了一个新项目(一个非常基本的项目) 我像这样配置了我的 application.properties : 服务器端口=9090 spring.cloud.config.server.nat...

回答 5 投票 0

无法从“可选:configserver:http://localhost:8090 - SpringBoot 2.4.0 Illford 2020.0.0-M3”加载配置数据

关于新的SpringBoot 2.4.0的问题。 首先,我们将配置服务器和配置客户端升级到 SpringBoot 2.4.0 + Illford 2020.0.0-M3 然后,我们就按照set的“新方式”...

回答 2 投票 0

Spring Cloud Gateway 和 Feign Client 的异步调用问题

我的 Spring Cloud Gateway 设置面临一个问题,其中配置为遍历多个服务的 GET 端点不等待下游服务的响应。具体来说,我有一个...

回答 1 投票 0

使用 svn 作为存储库的 spring-cloud-config-server 的奇怪问题

我正在使用 spring-cloud-config-server 和 SVN 作为存储库。当我启动云配置服务器和客户端[微服务]时,配置值被正确获取。 更改配置后

回答 2 投票 0

使用Spring Cloud配置服务器时无法加载Web服务application.properties

我有一个使用 github 运行的 Spring Cloud 配置服务器和一个管理用户的 Web 服务。 用于此测试项目的当前版本是: 弹簧启动3.2.1 春云 我有一项服务使用...

回答 1 投票 0

如何使用Spring Cloud Config Server集中log4j2配置

我正在使用 Spring Cloud 配置服务器文件系统后端:docs.spring.io 我有一个多 Maven 项目 项目: ├── pom.xml │ ├── 项目配置提供者 │ ├── pom.xml │ ├── 源代码 │ │ └── 麦...

回答 1 投票 0

“Eureka-Server”在运行“Spring Cloud Config Server”时看不到其属性

在“Eureka-Server”中,“application.properties”文件包含以下属性: spring.config.import=configserver:http://localhost:8888 spring.application.name=eserver ...

回答 1 投票 0

Spring Cloud Config Client 除了我指定的服务器位置之外还尝试 localhost:8888

我只发现其他 1 个地方报告了此问题,但没有解决方案:https://github.com/spring-cloud/spring-cloud-config/issues/2052 我是2021年0月3日。定义 def 以外的任何内容时...

回答 2 投票 0

集中管理服务配置和机密的最佳实践?

我们在面向服务的架构中使用容器为各种业务功能部署了多种服务。目前我们在 Portainer 中管理它们。它们主要开发于

回答 1 投票 0

Spring Cloud 配置是否缓存/存储后端的配置数据

在我的项目中,我计划在我的Spring Cloud CONIFG服务器设置中使用多个后端来存储不同的数据:使用git后端来存储非敏感数据,并使用Vault来存储敏感数据...

回答 2 投票 0

Spring boot Security自定义过滤器不调用

我正在使用 Spring Boot 3.2.0 和 Java 17 开发一个遵循微服务架构的应用程序。我有一个服务 - AuthService 用于身份验证目的。用户的登录请求将被路由...

回答 2 投票 0

Spring boot 安全配置由于 @RefreshScope 注释而回退到默认值

我正在使用 Spring Boot 3.2.0 和 Java 17 开发一个遵循微服务架构的应用程序。我有一个服务 - AuthService 用于身份验证目的。用户的登录请求将被路由...

回答 2 投票 0

@RefreshScope 替代整个应用程序

在使用 Spring Cloud 配置时,我遇到了 @RefreshScope。 据我了解,@RefreshScope 必须与任何需要动态更新所用属性的 bean 一起使用。 难道是……

回答 1 投票 0

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