Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在SpringCloudConfig客户端调用/env,密码属性显示;portal.db.password=***";_Spring_Spring Boot_Spring Cloud_Spring Boot Actuator_Spring Cloud Config - Fatal编程技术网

在SpringCloudConfig客户端调用/env,密码属性显示;portal.db.password=***";

在SpringCloudConfig客户端调用/env,密码属性显示;portal.db.password=***";,spring,spring-boot,spring-cloud,spring-boot-actuator,spring-cloud-config,Spring,Spring Boot,Spring Cloud,Spring Boot Actuator,Spring Cloud Config,远程git repo上的我的配置文件: myapp-uat.properties: portal.db.userName=allen portal.db.password=allen1235 我可以在客户端加载这个文件,我想通过调用/env保存这些属性,但是得到portal.db.password=*** 我想知道是否可以通过在客户机配置文件中添加一些属性或其他方法来获得真正的价值(portal.db.password=allen1235)。希望您能提供帮助。以下是/env端点的默认清理关键字

远程git repo上的我的配置文件:

myapp-uat.properties:

portal.db.userName=allen
portal.db.password=allen1235
我可以在客户端加载这个文件,我想通过调用/env保存这些属性,但是得到portal.db.password=***


我想知道是否可以通过在客户机配置文件中添加一些属性或其他方法来获得真正的价值(portal.db.password=allen1235)。希望您能提供帮助。

以下是
/env
端点的默认清理关键字

endpoints:  
  env:   
    keys-to-sanitize: password,secret,key,token,.*credentials.*,vcap_services
通过在
应用程序.yml/properties
中定义以下内容,可以在不使用
密码的情况下重写以下属性

endpoints:  
  env:   
    keys-to-sanitize: secret,key,token,.*credentials.*,vcap_services