cost 78 ms
使用@Refreshscope 后,公共變量無法獲取其值

[英]Public variabes are unable to fetch its values after using @Refreshscope

我能夠在我的配置 class 中分配公共變量。但是在使用注釋@Refreshscope之后,我得到了 null 值而不是實際值。 我在使用 getter 時獲得了價值,但在訪問時卻沒有獲得,比如, 我的配置 class 如下所示, 只有在為 Spring Config Client 使用@Refre ...

我們如何使用 spring cloud config server 來配置 log4j 屬性?

[英]How can we use spring cloud config server to configure log4j properties?

我正在嘗試在配置服務器中配置 log4j 配置,以便我可以為 spring boot 應用程序的不同環境設置不同的 log4 設置。 但是我找不到任何可以從配置服務器管理 log4j 配置的相關工作示例。 有什么方法可以使用配置服務器更好地管理 log4j 配置? ...

Spring Boot 客戶端應用如何調用“Azure Spring Apps”中的Config Server?

[英]How does Spring Boot client app call Config Server in "Azure Spring Apps"?

我正在研究在 Azure Spring Apps 中使用托管的 Spring Cloud Config Server。 我認為我的組織還沒有使用 Azure Spring Apps,所以我沒有使用它的經驗。 我已經閱讀了所有我能找到的關於設置使用 Spring Cloud Config Serve ...

spring 引導 3 配置文件屬性值在 boostrap.yaml 中被覆蓋

[英]spring boot 3 profile property values getting overridden in boostrap.yaml

最近試圖升級到 Spring Boot 3,但面臨屬性問題。 我的 bootstrap yml 如下所示,當我使用 profile dev 運行時,configserver url 總是連接到 qa,基本上是最后聲明的那個。 這在 spring 的 2.7.X 版本中工作正常,但在 spring b ...

我正在嘗試禁用 Spring 雲配置服務器中的 /decrypt 端點,以便任何有權訪問 /decrypt 端點的人都無法解密

[英]I am trying to disable the /decrypt endpoint in Spring cloud config server so that anyone with access to /decrypt endpoint wont be able to decrypt

任何有訪問權限的人都可以使用 /decrypt 端點我覺得加密是不安全的有什么辦法可以禁用解密端點嗎? url: http://localhost:23000/encrypt body: hello response: 8c27f45094636aee57e2e132f 啟用解密后我們可以找回密碼 ...

Spring 雲配置服務器通過執行器端點泄漏 GIT 環境

[英]Spring Cloud Configuration Server leaks GIT environment via actuator endpoints

我正在設置一個 Spring 雲配置服務器。 只有幾個依賴項和注釋。 屬性來源來自git。服務器已啟用默認基本設置的執行器。 我很驚訝執行器意外地對任何(甚至不存在的端點)做出反應並揭示了也用於存儲秘密的完整環境(git 屬性源)。 pom 依賴項: 應用程序.properties: Sprin ...

Spring 雲配置客戶端嘗試 localhost:8888 除了我指定的服務器位置

[英]Spring Cloud Config Client tries localhost:8888 in addition to my specified server location

我只在其他 1 個地方發現了這個問題,但沒有解決方法:https://github.com/spring-cloud/spring-cloud-config/issues/2052 我在 2021.0.3。 當使用 spring.config.import 定義默認 localhost:8888 以 ...

Quarkus 應用程序中是否有引導文件? 我可以使用 spring 雲配置服務器客戶端讀取外部配置文件

[英]Is there bootstrap file in Quarkus application ? I can read external config files using spring cloud config server client

我可以在運行時使用 spring 雲配置服務器客戶端讀取外部配置文件,但在應用程序啟動之前我不能。 我不能將外部配置文件用於數據庫連接或 kafka 主題。 有人知道嗎? Spring 有一個類似 bootstrap 的文件,用於在啟動應用程序之前使用並檢索所有配置。 但是 Quarkus 客戶端 ...

Spring Cloud Config Server '算法協商失敗' 問題

[英]Spring Cloud Config Server 'Algorithm negotiation fail' Problem

我正在嘗試設置使用 SSH 連接到遠程 Git 存儲庫的 Spring Cloud Config,但不斷收到錯誤“算法協商失敗”。 有人建議我更改 SSH 客戶端,因為 Jsch 0.1.55 不支持某些 kex 算法,但是 JGit 使用 JSch,而 Spring Cloud Config 又 ...

Eureka 服務未使用 ConfigServer 在 Git 存儲庫中讀取其配置文件

[英]Eureka service not reading its config file in Git repository using ConfigServer

我正在嘗試編寫一些基本的微服務示例。 首先,我使用了一個使用 Spring 的 ConfigServer 應用程序,帶有這個 resources/application.yaml 文件: 你可以看到回購: https ://github.com/mguzm4n/microservices-dat ...

如何在 Spring Cloud Config Server 中安全地存儲證書文件?

[英]How to Store Certificate Files Securely in Spring Cloud Config Server?

我有一個用於與 Web 服務通信的.pfx文件。 我從開發環境中的類路徑加載它,如下所示: application.yml Service.java 這在開發環境中運行良好。 問題是,我不想只是將證書資源推送到 git repo。 此外,我無法將文件放入服務器中,因為我們使用關鍵應用程序服 ...

spring應用重啟時間戳

[英]Timestamp of restart of spring application

我有一個基於 Spring Boot 的微服務。 我也有一個彈簧雲配置服務器。 所以根據configserver微服務的變化自動重啟。 所以現在我需要在應用程序重新啟動時獲取時間戳。 是否可以在同一個微服務中這樣做? ...

基於消息主題刷新微服務配置

[英]Refreshing configurations of microservices based on messaging topic

我有一個彈簧雲配置服務器,我們使用 s3 作為版本控制。 我有 activemq 用於發送稍后將由微服務使用的主題。 現在我們需要根據我們在 activemq 中發送的主題的值來刷新微服務的配置。 假設我們只有在主題中看到值“REFRESH”時才需要刷新微服務的配置,否則不會更改。 我們也不想調用執 ...

將 Spring Cloud Config Server 與 vault 后端集成,在 GET 請求上出現 I/O 錯誤,連接被拒絕

[英]Integrating Spring Cloud Config Server with vault backend giving I/O error on GET request with connection refused

我正在嘗試使 spring 雲配置服務器與 Vault 后端一起工作。 我沒有嘗試與保險庫的本地副本集成。 我有我正在嘗試連接的企業保險庫。 在這樣做的同時,我得到 org.springframework.web.client.ResourceAccessException: I/O error o ...

Spring 微服務 eureka 客戶端未向 eureka 服務器注冊

[英]Spring micro services eureka client is not registering with eureka server

我對 docker、spring 框架的一切都很陌生......它們在本地主機環境中成功運行,現在我想將它們推送到 docker,但總是給我錯誤,我被困了大約一個星期。 有人可以幫我弄清楚嗎!!! 現在我有 eureka-server 和 cloud-config-server 服務,這是我的代碼: ...

spring 配置服務器在目錄名稱不同時找不到本地 git 存儲庫

[英]spring config server unable to find local git repository when directory name is different

我有一個配置存儲庫http://gitea-server:3000/demoadmin/demo-school-config-store.git 。 該存儲庫在目錄config-store中被克隆和同步。 請注意 git 存儲庫名稱與目錄名稱不同我的配置服務器應用程序是這樣的:spring: a ...

如何使用 Spring Boot 2.4+ 根據應用程序屬性文件從不同的 URL 設置配置服務器 repo

[英]How to set config server repo from different URLs based on application properties files using Spring Boot 2.4+

我有一個項目,其中我使用 spring.cloud.config.uri 根據運行應用程序的配置文件配置回購服務器的 URL 並具有 application.yml 和 application-local.yml 文件。 但是我需要把spring-boot的版本更新到2.4以上,開始加載配置失敗。 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM