为某些 Spring 配置文件禁用 spring-cloud-aws-secrets-manager-config 模块 [英] Disable spring-cloud-aws-secrets-manager-config module for some Spring profile
本文介绍了为某些 Spring 配置文件禁用 spring-cloud-aws-secrets-manager-config 模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以为某些 Spring 配置文件禁用 spring-cloud-aws-secrets-manager-config
模块?
Is it possible to disable spring-cloud-aws-secrets-manager-config
module for some Spring profile ?
我正在寻找一种在本地测试时禁用它的方法.
I'm looking for a way to disable it while testing locally.
推荐答案
在 bootstrap.yml
中,您可以为您想要的配置文件设置 aws.secretsmanager.enabled: false
禁用 Secrets Manager 集成.
In bootstrap.yml
you can set aws.secretsmanager.enabled: false
for the profile you want to disable Secrets Manager integration.
这篇关于为某些 Spring 配置文件禁用 spring-cloud-aws-secrets-manager-config 模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文