标签: configserver

Spring Config Server加密"="符号的问题

任何人都可以通过配置服务器加密具有特殊字符的值来遇到问题吗?

目前我正在这样做

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)

但加密'='符号仍然没有成功.

提前致谢

encryption spring spring-boot configserver

5
推荐指数
1
解决办法
1013
查看次数

将活动配置文件设置为“本机”,在 Spring Boot 2 配置服务器中强制

我正在尝试在 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)

spring spring-boot configserver

5
推荐指数
1
解决办法
1022
查看次数

Spring boot 中配置服务器的多个搜索路径

我需要为微服务列表创建一个专用的配置服务器。以下是配置服务器的 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},以便“您可以隔离路径中的目录”

如果有人能帮我解决这个问题,那将是一个很大的帮助,谢谢!

spring-boot microservices configserver

2
推荐指数
1
解决办法
2835
查看次数

如何禁用 configserver Health 页面检查默认标签 git

我有简单的配置服务器实现,当我浏览/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

1
推荐指数
1
解决办法
552
查看次数