Skip to content

Commit

Permalink
单表
Browse files Browse the repository at this point in the history
  • Loading branch information
renjiancheng committed Oct 18, 2023
1 parent b532f2e commit ce5ae40
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/resources/shardingJdbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ mode: # 不配置默认单机
repository:
type: JDBC # 持久化仓库类型
dataSources:
default:
type: com.alibaba.druid.pool.DruidDataSource
dataSourceClassName: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/test
username: root
password: zard
test:
type: com.alibaba.druid.pool.DruidDataSource
dataSourceClassName: com.alibaba.druid.pool.DruidDataSource
Expand Down Expand Up @@ -31,5 +38,8 @@ rules:
props:
strategy: standard
algorithmClassName: com.example.shardingjdbclearn.config.CspShardingAlgorithms
- !SINGLE
tables:
- test.*
props:
sql-show: true

0 comments on commit ce5ae40

Please sign in to comment.