Spring cloud-Bus (消息总线)

     <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-bus-amqp</artifactId>
            <version>1.3.3.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
spring:
  application:
      name: carloan-config-center
  cloud:
    config:
      server:
        native:
          search-locations: config/shared
    bus:
      trace:
        enabled: true
  profiles:
     active: native
  rabbitmq:
        password: xx
        port: 9090
        host: xxx.xx.xxx.xx
        username: xx
        virtual-host: xx
management:
    security:
       enabled: false
server:
  port: 8888
http://10.0.130.80:8888/bus/refresh

 

posted @ 2018-08-06 11:25  也许还年轻  阅读(211)  评论(0编辑  收藏  举报