techhero-component-task-local.yml 1.11 KB
Newer Older
Administrator committed
1 2 3 4 5 6
spring:
  rabbitmq:
    host: dev-env
    port: 5672
    username: techhero
    password: techhero
7
    virtual-host: /framework
Administrator committed
8 9 10 11 12 13
    listener:
      simple:
        acknowledge-mode: manual  # 消息确认方式,其有三种配置方式,分别是none、manual(手动ack) 和auto(自动ack) 默认auto
    publisher-confirms: true #确认消息已发送到交换机(Exchange)
    publisher-returns: true #确认消息已发送到队列(Queue)
  redis:
14 15
    database: 10
    host: test-env
Administrator committed
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
    port: 6379
    password: techhero
    timeout: 0
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0
  datasource:
    url: jdbc:mysql://dev-env:33060/task_db?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
    username: root
    password: techhero
    driver-class-name: com.mysql.cj.jdbc.Driver
    druid:
      stat-view-servlet:
        loginUsername: root
        loginPassword: root
      initial-size: 1
      max-active: 20
      min-idle: 3
      max-wait: 60000
      time-between-eviction-runs-millis: 60000
      validation-query: select 1 from dual
      filters: stat,slf4j