springcloud 查看Zuul的路由端点 /routes

解决办法:

  • 在配置文件application.yml中配置如下:
#显示路由zuul的端口配置,不配置无法访问 /routes
management:                       
  endpoints:
    web:
      exposure:
        include: "*"
  endpoint:
      health:
        show-details: ALWAYS
  • 结果如下:
    springcloud 查看Zuul的路由端点 /routes_第1张图片

你可能感兴趣的:(spring-cloud)