初始化提交

This commit is contained in:
USER-20221017CE\Administrator
2022-11-01 12:14:54 +08:00
commit d31fad2aa9
1733 changed files with 370203 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
logging:
level:
com:
tuling:
tulingmall:
history:
dao: debug
spring:
#读写分离配置
shardingsphere:
#数据源配置
datasource:
names: ds-master,ds-slave
ds-master:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.65.223:3306/tl_mall_order?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowPublicKeyRetrieval=true
initialSize: 5
minIdle: 10
maxActive: 30
validationQuery: SELECT 1 FROM DUAL
username: tlmall
password: tlmall123
ds-slave:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.65.137:3306/tl_mall_order?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowPublicKeyRetrieval=true
initialSize: 5
minIdle: 10
maxActive: 30
validationQuery: SELECT 1 FROM DUAL
username: tlmall
password: tlmall123
#读写分离配置
masterslave:
name: ds_ms
master-data-sourceName: ds-master
slave-data-sourceNames:
- ds-slave
load-balance-algorithmType: ROUND_ROBIN
props:
sql:
show: true