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'



上一篇:Linux创建共享磁盘并划分


下一篇:借助阿里云快速下载Gradle 6.x zip安装包