techhero-platform-exampre-dev.yml 941 Bytes
Newer Older
1 2
spring:
  redis:
3 4
    database: 5
    host: fdff:1:1:1::1
5
    port: 6379
6
    password: techhero123
7 8 9 10 11 12
    timeout: 5000
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0
13 14 15 16 17 18 19 20 21 22 23
  rabbitmq:
    host: 119.96.87.17
    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)
24 25 26 27 28 29 30 31 32 33 34
    # 交换机
    exchanges:
      # 考试计划交换机
      - name: abs.exam.plan.exchange
        type: DIRECT
    # 队列
    queues:
      # 考试计划队列
      - name: abs.exam.plan.queue
        routing-key: abs.exam.plan.key
        exchange-name: abs.exam.plan.exchange
35

36

37 38 39 40