java-mall/mall-im/src/main/resources/bootstrap-uat.yml

111 lines
3.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

spring:
datasource:
url: jdbc:mysql://@mysql.host@:@mysql.port@/@mysql.db@?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&&zeroDateTimeBehavior=convertToNull
username: @mysql.user@
password: @mysql.pwd@
driver-class-name: @mysql.driver@
type: com.alibaba.druid.pool.DruidDataSource
druid:
async-init: true
initial-size: 5
max-active: 20
min-idle: 5
max-wait: 60000
validationQuery: SELECT 1
test-while-idle: true
test-on-borrow: false
test-on-return: false
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
filters: stat,wall,slf4j
filter:
stat:
enabled: true
db-type: mysql
log-slow-sql: true
slow-sql-millis: 10
aop-patterns: com.suisung.mall.common.service.impl.*,com.suisung.mall.core.web.service.impl.*,com.suisung.mall.im.*
redis:
host: @redis.host@ # Redis服务器地址
database: @redis.database@ # Redis数据库索引默认为0
port: @redis.port@ # Redis服务器连接端口
password: @redis.password@ # Redis服务器连接密码默认为空
timeout: 3000ms # 连接超时时间(毫秒)
lettuce:
pool:
max-active: 64
max-wait: -1ms
max-idle: 64
min-idle: 0
rabbitmq:
host: @rabbitmq.host@
port: @rabbitmq.port@
virtual-host: @rabbitmq.virtual-host@
listener:
simple:
acknowledge-mode: manual #手动确认消息,不使用默认的消费端确认
username: @rabbitmq.username@
password: @rabbitmq.password@
cloud:
nacos:
discovery:
server-addr: @nacos.server.address@
config:
server-addr: @nacos.server.address@
file-extension: yaml
sentinel:
transport:
dashboard: @sentinel.transport.dashboard@
eager: true
seata:
# 开启自动装配
enabled: true
# 本客户端的微服务名称
application-id: mall-im
data-source-proxy-mode: AT
# 读取哪个事务分组
# 例如此时会读取 SEATA_GROUP 这个分组下的 service.vgroupMapping.my_test_tx_group 这个属性的值。从上面的配置可以知道笔者此处的最终值为 testCluster。后面程序运行会找到 testCluster 这个集群的seata服务端进行通讯。
tx-service-group: @seata.tx-service-group@
enable-auto-data-source-proxy: true
registry:
type: nacos
nacos:
server-addr: @nacos.server.address@
group: @seata.group@
username: @nacos.username@
password: @nacos.password@
config:
type: nacos
nacos:
server-addr: @nacos.server.address@
group: @seata.group@
username: @nacos.username@
password: @nacos.password@
service:
vgroup-mapping:
my_test_tx_group: default
# 控制台日志信息
logging:
level:
com:
suisung:
mall:
im:
mapper: debug
sun:
mail: error
baomidou: error
alibaba:
cloud:
seata: error
nacos:
client:
naming: error
config: error
netflix: error
org: error
io: error
reactor: error
springfox: error
logstash:
host: @logstash.host@