我有一个正在运行的Springboot应用程序,服务于URLhttp://localhost:8081/topics
并正常返回JSON响应。
我添加了actuator依赖项
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<scope>test</scope>
</dependency>
如教程所建议
但当我访问http://localhost:8081/health
时,它没有给出预期的结果。它显示
{
"timestamp": 1497952368055,
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/health"
}
Spring boot版本为1.5.4.RELEASE。和Java 1.8 我需要做什么额外的设置?