配置Spring配置服务器以仅返回propertySources值

时间:2019-04-02 17:07:22

标签: java spring spring-boot configserver

默认情况下,使用git作为数据源的Spring boot config server应用程序将返回以下JSON:

{
"name":"//appname",
"profiles"["//profile"],
"label":"//label",
"version":"//commit-hash",
"state":null,
"propertySources":[
  {
    "name":"//filename",
    "source":
        // <---- here comes actual content of the proper .yaml file
 }
]}

有没有一种方法可以将输出仅剪切到我需要使用的内容中

propertySources.source

属性?

0 个答案:

没有答案