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"
}