在Spring boot 2.0
版本中的spring-boot-starter-actuator
改用了默认的接口访问路径。
现在需要在每个actuator
的接口上加上前缀/actoator
如:
http://127.0.0.1:8080/actuator/routes
而为了查询zuul
网关各个路由的响应信息使用
GET /actuator/routes?format=detail
方式请求,始终只能得到基础的路由信息。在看了启动日志。部分日志如下
Mapped "{[/actuator/routes/{format}],methods=[GET],
produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}"
onto public java.lang.Object org.springframework.boot.actuate.endpoint.web.servlet
现该接口改变了参数新的接口需要使用下面方式请求
GET /actuator/routes/{format}
如:
http://127.0.0.1:8080/actuator/routes/detail