找不到spring boot 2执行器配置属性源

piah890a  于 2021-07-23  发布在  Java
关注(0)|答案(0)|浏览(258)

我一直在尝试从springboot1.x迁移到springboot2.4.2。我对执行器的/health endpoint有个问题,它说:

"clientConfigServer": {
  "status": "UNKNOWN",
  "details": {
    "error": "no property sources located"
  }
}

在活动配置文件中。对于旧版本,一切都按预期进行,我收到了:

"configServer": {
  "status": "UP",
  "propertySources": [
     "file:C:\\Users\user\projects\tagging.yml",
  ]
}

这是虫子还是我做错了什么?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题