任何人都可以通过配置服务器加密具有特殊字符的值来遇到问题吗?
目前我正在这样做
curl http://localhost:8888/configser/config/encrypt -d eF345edo=
Run Code Online (Sandbox Code Playgroud)
我也提到了这个https://github.com/spring-cloud/spring-cloud-config/issues/620并尝试如下
curl http://localhost:8888/configser/config/encrypt --data-urlencode eF345edo=
Run Code Online (Sandbox Code Playgroud)
但加密'='符号仍然没有成功.
提前致谢
我正在尝试在 Spring Boot 2.1.6 版本中创建嵌入式配置服务器。启动失败说:
***************************
APPLICATION FAILED TO START
***************************
Description:
Invalid config server configuration.
Action:
If you are using the git profile, you need to set a Git URI in your configuration. If you are using a native profile and have spring.cloud.config.server.bootstrap=true, you need to use a composite configuration.
Run Code Online (Sandbox Code Playgroud)
我不确定 spring 是否清楚地记录了本机配置文件是什么,而我的 bootstrap.yml 如下所示:
---
spring:
application:
name : <name>
datasource:
url: <url>
driver-class-name: oracle.jdbc.OracleDriver
username: <username>
password: <password>
hikari:
maximum-pool-size: 1
connection-timeout: 5000
cloud:
config:
server:
bootstrap: …Run Code Online (Sandbox Code Playgroud) 我需要为微服务列表创建一个专用的配置服务器。以下是配置服务器的 application.yml 片段:
server.port: 8888
management.security.enabled: false
spring:
cloud:
config:
server:
git:
uri: some github link
username: ENC(/YNsVqtbBwIOq+KlzzQrn6WZbg1tPxzn9V0BM=)
password: ENC(+jatkfs906vfPwqPxtkgBn3LeVGr)
search-paths:
- microcervices1
- microservices2
- microservices3
jasypt:
encryptor:
algorithm: some algorithm
password: Its password
Run Code Online (Sandbox Code Playgroud)
我在访问这些微服务配置时遇到问题。
文档http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_spring_cloud_config_server提到可以在 searchPaths 变量中使用通配符 {application}、{label}、{profile},以便“您可以隔离路径中的目录”
如果有人能帮我解决这个问题,那将是一个很大的帮助,谢谢!
我有简单的配置服务器实现,当我浏览/health端点时,我得到:
{
status:"UP",
"details":{
"configserver":{
"status":"UP",
"details":{
"repositories":[
{
...
Run Code Online (Sandbox Code Playgroud)
如何在我的配置服务器再次检查配置服务器运行状况的情况下停止此操作。这导致配置服务器多次调用 git,这在我的场景中是不需要的。
spring-boot spring-cloud spring-boot-actuator actuator configserver