网上的解决方案都以千篇一律,
老兄你可以试试这个:
这个是spring下面的配置
# 切记这个一定要开,要不然报405 bus: refresh: enabled: true
yml全套:
server: port: 3344 eureka: client: service-url: defaultZone: http://eureka7001.com:7001/eureka,http://eureka7002.com:7002/eureka spring: application: name: cloud-config-center cloud: config: server: git: uri: git@github.com:bztylzy/springcloud-config.git search-paths: - springcloud-config label: master # 切记这个一定要开,要不然报405 bus: refresh: enabled: true rabbitmq: host: localhost port: 5672 username: guest password: guest #暴露端点 management: endpoints: web: exposure: include: 'bus-refresh'