55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
server:
|
|
port: 9002
|
|
|
|
spring:
|
|
application:
|
|
name: xdclass-coupon-service
|
|
|
|
cloud:
|
|
#注册中心地址
|
|
nacos:
|
|
discovery:
|
|
server-addr: 8.134.32.140:8848
|
|
|
|
#消息队列
|
|
rabbitmq:
|
|
host: 134.175.219.253
|
|
port: 5672
|
|
virtual-host: /
|
|
password: jieyuu
|
|
username: admin
|
|
#开启手动确认消息
|
|
listener:
|
|
simple:
|
|
acknowledge-mode: manual
|
|
|
|
#数据库配置
|
|
datasource:
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://134.175.219.253:3306/xdclass_coupon?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
|
|
username: root
|
|
password: 59ae8683c59fead903132a8d440bd7d9fd4936529d1d6f45f9d41111d7537bdd
|
|
redis:
|
|
host: 134.175.219.253
|
|
password: 123456
|
|
port: 8000
|
|
|
|
#配置plus打印sql日志
|
|
mybatis-plus:
|
|
configuration:
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
#设置日志级别,ERROR/WARN/INFO/DEBUG,默认是INFO以上才显示
|
|
logging:
|
|
level:
|
|
root: INFO
|
|
|
|
|
|
#seata配置
|
|
#seata:
|
|
# tx-service-group: ${spring.application.name}-group
|
|
# service:
|
|
# grouplist:
|
|
# xdclass: 134.175.219.253:8091
|
|
# vgroup-mapping:
|
|
# xdclass-coupon-service-group: xdclass |