問題タブ [spring-cloud-vault-config]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
spring-boot - Spring Cloud Vault を使用して db 資格情報を取得する方法
DAO 経由で db2 データベースに接続する spring-boot 2 アプリケーションがあります。現在のアプリケーションは、次のように application.properties を使用して資格情報を保存します。
ユーザー名とパスワードを Hashicorp Vault に保存し、実行時に Spring Cloud Vault 機能を使用して取得したいと考えています。
Spring Guides からこの例を調べましたが、Vault から取得したこれらの値をどうするかわかりません。db2 データソースに接続するときに Spring Boot が使用するプロパティに変換するにはどうすればよいですか?