application.yml 2.9 KB
server:
  port: 9030

# spring 配置
spring:
  security:
    user:
      name: admin
      password: 123456

  application:
    name: message-bus-service

  # 数据源配置
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://118.31.66.166:3306/bus_service?characterEncoding=utf8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
    username: 110
    password: QAHqCJf2kFYCLirM

  # redis设置
  redis:
    database: 0 # Redis 数据库索引(默认为 0)
    host: 192.168.37.139 # Redis 服务器地址
    port: 6379 # Redis 服务器连接端口
    password: 123456 # Redis 服务器连接密码(默认为空)
    lettuce:
      pool:
        max-active: 8 # 连接池最大连接数(使用负值表示没有限制) 默认 8
        max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1
        max-idle: 8 # 连接池中的最大空闲连接 默认 8
        min-idle: 0 # 连接池中的最小空闲连接 默认 0

  # rabbitmq配置
  rabbitmq:
    host: 192.168.37.139
    port: 5672
    username: zicheng
    password: 123456
    virtual-host: V_zicheng
    # 开启手动ack机制
  #    listener:
  #      simple:
  #        acknowledge-mode: manual
  #    # 开启 confrim 机制--保证消息发送到交换机
  #    publisher-confrim-type: simple
  #    # 开启 return 机制--保证消息从交换机分发到队列
  #    publisher-returns: true



  #    host: 192.168.1.63
  #    port: 5672
  #    username: mrz
  #    password: vmvnv1v2
  # 多环境配置
  profiles:
    active: dev

  # Jackson配置
  jackson:
    default-property-inclusion: ALWAYS
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss

  # zipkin 链路追踪配置
  zipkin:
    base-url: http://192.168.1.63:9411
    sleuth:
      sampler:
        probability: 1

# mybatis 配置
mybatis:
  mapper-locations: classpath:mapper/*.xml
  type-aliases-package: com.sunyo.wlpt.message.bus.service.domain

# 日志配置
logging:
  config: config/logback-dev.xml
  level:
    com.sunyo.wlpt.message.bus.service.mapper: debug
logback:
  appname: message-bus-service
  logdir: ./log

#eureka 配置
eureka:
  instance:
    status-page-url:  http://${eureka.instance.hostname}:${server.port}/index
    prefer-ip-address: true
    instance-id:  ${spring.cloud.client.ip-address}:${server.port}
    hostname: ${spring.cloud.client.ip-address}
    metadata-map:
      user:
        name: "admin"
        password: "123456"

  client:
    healthcheck:
      enabled: true
    service-url:
      defaultZone: http://192.168.1.53:12345/eureka/

# boot admin
management:
  endpoints:
    enabled-by-default: true
    web:
      exposure:
        include: "*"
  endpoint:
    health:
      show-details: always
    shutdown:
      enabled: true

path:
  # 文件夹的位置,就一个文件夹
  dir: xml

# 基础信息配置
info:
  version: 1.0
  description: "消息平台服务"