Springcloud bus总线访问http://localhost:3344/actuator/bus-refresh刷新配置提示405
作者:互联网
网上的解决方案都以千篇一律,
老兄你可以试试这个:
这个是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'
标签:git,http,bus,refresh,eureka,405,Springcloud,config 来源: https://blog.csdn.net/weixin_39845780/article/details/116546214