我将endpoints.health.path
属性设置为/ping/me
. 但我无法使用http://localhost:9000/ping/me访问端点
它仅适用于http://localhost:9000/health。我错过了什么?这是应用程序属性文件中的代码。
#Configuration for Health endpoint
endpoints.health.id=health
endpoints.health.path=/ping/me
endpoints.health.enabled=true
endpoints.health.sensitive=false
#Manage endpoints
management.port=9000
management.health.diskspace.enabled=false
我得到的回应是:
{
"timestamp" : 1455736069839,
"status" : 404,
"error" : "Not Found",
"message" : "Not Found",
"path" : "/ping/me"
}