默认情况下,使用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
属性?