Commit 237d68ac by 张宗强

TEST

parent 6842ae0e
...@@ -19,34 +19,12 @@ spring: ...@@ -19,34 +19,12 @@ spring:
sampler: sampler:
percentage: 1.0 percentage: 1.0
# 分库分表支持 datasource:
sharding: driver-class-name: com.mysql.jdbc.Driver
jdbc: url: jdbc:mysql://192.168.1.82:3306/proudkids_ems?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
defaultDataSourceName: username: proudkids
type: com.zaxxer.hikari.HikariDataSource password: pds123!@#
driver-class-name: com.mysql.jdbc.Driver
username: proudkids
password: pds123!@#
url: jdbc:mysql://192.168.1.82:3306/proudkids_ems?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
datasource:
names: ds
ds:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.jdbc.Driver
username: proudkids
password: pds123!@#
url: jdbc:mysql://192.168.1.82:3306/proudkids_ems?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
config:
sharding:
tables:
sys_log:
actual-data-nodes: ds.sys_log_${0..1}
table-strategy:
inline:
sharding-column: id
algorithm-expression: sys_log_${id % 2}
key-generator-column-name: id
#mybaits-plus配置,修改主键类型,mapper.xml、type 别名等 #mybaits-plus配置,修改主键类型,mapper.xml、type 别名等
mybatis-plus: mybatis-plus:
mapper-locations: classpath:/mapper/*Mapper.xml mapper-locations: classpath:/mapper/*Mapper.xml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment