techhero-front-inspect-server-local.yml 1.15 KB
Newer Older
Administrator committed
1 2 3
front:
  server:
    port: 18888
4 5 6 7 8 9 10 11 12 13 14 15
spring:
  redis:
    database: 10
    host: 119.96.99.9
    port: 6379
    password: techhero
    timeout: 0
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
  rabbitmq:
    host: dev-env
    port: 5672
    username: techhero
    password: techhero
    virtual-host: /framework
    listener:
      simple:
        acknowledge-mode: manual  # 消息确认方式,其有三种配置方式,分别是none、manual(手动ack) 和auto(自动ack) 默认auto
    publisher-confirms: true #确认消息已发送到交换机(Exchange)
    publisher-returns: true #确认消息已发送到队列(Queue)
    # 交换机
    exchanges:
    # 通配符订阅
    - name: topic.mode
      type: TOPIC
    # 广播
    - name: fanout.mode
      type: FANOUT
    # 消息头
    - name: headers.mode
      type: HEADERS
    # 队列
    queues:
    # 直连队列
    - name: queue.direct.one
      exchange-name: fanout.mode
    # 队列2
    - name: queue.two
      routing-key: queue.two.*
      exchange-name: fanout.mode,topic.mode
    - name: queue.three
      routing-key: queue.obj.*
      exchange-name: topic.mode