1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- spring:
- # 数据源连接--start
- datasource:
- url: jdbc:mysql://172.31.165.28:3306/caimei?characterEncoding=UTF8&serverTimezone=Asia/Shanghai
- username: developer
- password: J5p3tgOVazNl4ydf
- # Hikari will use the above plus the following to setup connection pooling
- type: com.zaxxer.hikari.HikariDataSource
- hikari:
- minimum-idle: 5
- maximum-pool-size: 15
- auto-commit: true
- idle-timeout: 30000
- pool-name: DatebookHikariCP
- max-lifetime: 1800000
- connection-timeout: 30000
- connection-test-query: SELECT 1
- # 数据源连接--end
- redis:
- host: 172.31.165.27
- port: 6379
- password: 6#xsI%b4o@5c3RoE
- #Redis数据库索引(默认为0)
- database: 0
- #连接池最大连接数(使用负值表示没有限制)
- jedis:
- pool:
- max-active: 50
- #连接池最大阻塞等待时间(使用负值表示没有限制)
- max-wait: 3000
- #连接池中的最大空闲连接
- max-idle: 20
- #连接池中的最小空闲连接
- min-idle: 2
- #连接超时时间(毫秒)
- timeout: 5000
- #整合mybatis
- mybatis:
- #加载Mybatis映射文件
- mapper-locations:
- - classpath:mapper/*.xml
- # 指定服务注册中心的地址
- eureka:
- instance:
- prefer-ip-address: true # 是否使用 ip 地址注册
- instance-id: ${spring.cloud.client.ip-address}:${server.port} # ip:port
- client:
- service-url: # 设置服务注册中心地址
- defaultZone: http://47.119.112.46:18000/eureka/
- #日志配置
- logging:
- file:
- path: /mnt/newdatadrive/data/runtime/cloud-instance/server-tools/logs
- level:
- root: info
- # swagger配置
- swagger:
- # swagger开启状态,true开启,false关闭
- enabled: true
- ui-config:
- operations-sorter: method
- # rocketmq 配置项,对应 RocketMQProperties 配置类
- rocketmq:
- name-server: 39.108.11.105:9876 # RocketMQ Namesrv,测试环境120.79.25.27:9876未启动
- producer:
- group: caimei_beta_group # 生产者分组
- send-message-timeout: 3000 # 发送消息超时时间,单位:毫秒。默认为 3000 。
- # compress-message-body-threshold: 4096 # 消息压缩阀值,当消息体的大小超过该阀值后,进行消息压缩。默认为 4 * 1024B
- # max-message-size: 4194304 # 消息体的最大允许大小。。默认为 4 * 1024 * 1024B
- # retry-times-when-send-failed: 2 # 同步发送消息时,失败重试次数。默认为 2 次。
- # retry-times-when-send-async-failed: 2 # 异步发送消息时,失败重试次数。默认为 2 次。
- # retry-next-server: false # 发送消息给 Broker 时,如果发送失败,是否重试另外一台 Broker 。默认为 false
- # access-key: # Access Key ,可阅读 https://github.com/apache/rocketmq/blob/master/docs/cn/acl/user_guide.md 文档
- # secret-key: # Secret Key
- # enable-msg-trace: true # 是否开启消息轨迹功能。默认为 true 开启。可阅读 https://github.com/apache/rocketmq/blob/master/docs/cn/msg_trace/user_guide.md 文档
- # customized-trace-topic: RMQ_SYS_TRACE_TOPIC # 自定义消息轨迹的 Topic 。默认为 RMQ_SYS_TRACE_TOPIC 。
- # # Consumer 配置项
- # consumer:
- # listeners: # 配置某个消费分组,是否监听指定 Topic 。结构为 Map<消费者分组, <Topic, Boolean>> 。默认情况下,不配置表示监听。
- # erbadagang-consumer-group:
- # topic1: false # 关闭 test-consumer-group 对 topic1 的监听消费
|