Commit 6a34d249 by 张宗强

test

parent 2bb87992
...@@ -19,18 +19,33 @@ spring: ...@@ -19,18 +19,33 @@ spring:
sampler: sampler:
percentage: 1.0 percentage: 1.0
datasource: # 分库分表支持
type: com.zaxxer.hikari.HikariDataSource sharding:
url: jdbc:mysql://192.168.1.82:3306/proudkids_ems?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false jdbc:
username: proudkids defaultDataSourceName:
password: pds123!@# type: com.zaxxer.hikari.HikariDataSource
platform: h2 driver-class-name: com.mysql.jdbc.Driver
initialize: true username: proudkids
continue-on-error: true password: pds123!@#
h2: url: jdbc:mysql://192.168.1.82:3306/proudkids_ems?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
console: datasource:
enabled: true names: ds
path: /console 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:
......
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