解决actuator访问gateway相关端点404

一、场景复现

1、spring cloud 版本

2022.0.0-RC2

2、配置文件

# 端点检查放开所有
management:
  endpoints:
    web:
      exposure:
        include: "*"
  endpoint:
    health:
      show-details: always

二、原因分析

配置文件改了.

三、解决办法

management:
  endpoints:
    web:
      exposure:
        include: "*"
  endpoint:
    health:
      show-details: always
    # 重点在这里,默认为false,所以没有gateway相关端点,打开后就可以访问
    gateway:
      enabled: true