Commit 6dee84b0c2509c6e1ec973e8985cbbde171c2bff

Authored by 王彬
1 parent 158429f6

dev_wb

@@ -21,9 +21,9 @@ dependencies { @@ -21,9 +21,9 @@ dependencies {
21 compile("org.springframework.boot:spring-boot-starter:2.0.5.RELEASE") 21 compile("org.springframework.boot:spring-boot-starter:2.0.5.RELEASE")
22 compile("org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final") 22 compile("org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final")
23 compile('org.springframework:spring-jdbc:5.1.9.RELEASE') 23 compile('org.springframework:spring-jdbc:5.1.9.RELEASE')
24 - compile('mysql:mysql-connector-java:5.1.47') 24 + compile('mysql:mysql-connector-java:8.0.11')
25 compile('com.alibaba:druid:1.2.4') 25 compile('com.alibaba:druid:1.2.4')
26 - compile("org.apache.shardingsphere:shardingsphere-sharding-spring-boot-starter:5.0.0-alpha") 26 + compile("org.apache.shardingsphere:shardingsphere-jdbc-core-spring-boot-starter:5.0.0-alpha")
27 } 27 }
28 28
29 repositories { 29 repositories {
src/test/resources/application.properties
@@ -15,7 +15,7 @@ spring.mvc.dispatch-options-request=true @@ -15,7 +15,7 @@ spring.mvc.dispatch-options-request=true
15 # shardingspere 15 # shardingspere
16 spring.shardingsphere.datasource.names=ds0 16 spring.shardingsphere.datasource.names=ds0
17 spring.shardingsphere.datasource.common.type=com.alibaba.druid.pool.DruidDataSource 17 spring.shardingsphere.datasource.common.type=com.alibaba.druid.pool.DruidDataSource
18 -spring.shardingsphere.datasource.common.driver-class-name=com.mysql.jdbc.Driver 18 +spring.shardingsphere.datasource.common.driver-class-name=com.mysql.cj.jdbc.Driver
19 spring.shardingsphere.datasource.ds0.url=jdbc:mysql://rdsifmezqifmezqo.mysql.rds.aliyuncs.com:3306/bzyun_wxorder?characterEncoding=UTF-8 19 spring.shardingsphere.datasource.ds0.url=jdbc:mysql://rdsifmezqifmezqo.mysql.rds.aliyuncs.com:3306/bzyun_wxorder?characterEncoding=UTF-8
20 spring.shardingsphere.datasource.ds0.username=tylife 20 spring.shardingsphere.datasource.ds0.username=tylife
21 spring.shardingsphere.datasource.ds0.password=lexi365 21 spring.shardingsphere.datasource.ds0.password=lexi365
@@ -24,28 +24,25 @@ spring.shardingsphere.datasource.ds0.max-active=20 @@ -24,28 +24,25 @@ spring.shardingsphere.datasource.ds0.max-active=20
24 spring.shardingsphere.datasource.ds0.min-idle=5 24 spring.shardingsphere.datasource.ds0.min-idle=5
25 spring.shardingsphere.datasource.ds0.max-wait=60000 25 spring.shardingsphere.datasource.ds0.max-wait=60000
26 26
27 -#spring.shardingsphere.datasource.ds1.type=com.alibaba.druid.pool.DruidDataSource  
28 -#spring.shardingsphere.datasource.ds1.driver-class-name=com.mysql.jdbc.Driver  
29 -#spring.shardingsphere.datasource.ds1.url=jdbc:mysql://121.42.142.102:3306/bzyun_wxorder?characterEncoding=UTF-8  
30 -#spring.shardingsphere.datasource.ds1.username=dev  
31 -#spring.shardingsphere.datasource.ds1.password=taover02  
32 -#spring.shardingsphere.datasource.ds1.initial-size=10  
33 -#spring.shardingsphere.datasource.ds1.max-active=20  
34 -#spring.shardingsphere.datasource.ds1.min-idle=5  
35 -#spring.shardingsphere.datasource.ds1.max-wait=60000  
36 -#  
37 -#spring.shardingsphere.sharding.tables.wxorder_order.actual-data-nodes=ds0.wxorder_order,ds1.wxorder_order  
38 -#spring.shardingsphere.sharding.tables.wxorder_order.database-strategy.hint.algorithm-class-name=com.taover.repository.shardingsphere.ShardingDatabaseAlgorithmHint  
39 -#spring.shardingsphere.sharding.tables.wxorder_order.table-strategy.hint.algorithm-class-name=com.taover.repository.shardingsphere.ShardingTableAlgorithmHint  
40 -#spring.shardingsphere.sharding.tables.wxorder_order.key-generator.column=id  
41 -#spring.shardingsphere.sharding.tables.wxorder_order.key-generator.type=SNOWFLAKE-SELF  
42 -#  
43 -#spring.shardingsphere.sharding.tables.wxorder_order_goods.actual-data-nodes=ds0.wxorder_order_goods  
44 -#spring.shardingsphere.sharding.tables.wxorder_order_goods.database-strategy.hint.algorithm-class-name=com.taover.repository.shardingsphere.ShardingDatabaseAlgorithmHint  
45 -#spring.shardingsphere.sharding.tables.wxorder_order_goods.table-strategy.hint.algorithm-class-name=com.taover.repository.shardingsphere.ShardingTableAlgorithmHint  
46 -#spring.shardingsphere.sharding.tables.wxorder_order_goods.key-generator.column=id  
47 -#spring.shardingsphere.sharding.tables.wxorder_order_goods.key-generator.type=SNOWFLAKE-SELF  
48 - 27 +spring.shardingsphere.datasource.ds1.url=jdbc:mysql://121.42.142.102:3306/bzyun_wxorder?characterEncoding=UTF-8
  28 +spring.shardingsphere.datasource.ds1.username=dev
  29 +spring.shardingsphere.datasource.ds1.password=taover02
  30 +spring.shardingsphere.datasource.ds1.initial-size=10
  31 +spring.shardingsphere.datasource.ds1.max-active=20
  32 +spring.shardingsphere.datasource.ds1.min-idle=5
  33 +spring.shardingsphere.datasource.ds1.max-wait=60000
  34 +
  35 +#spring.shardingsphere.rules.sharding.tables.wxorder_order.actual-data-nodes=ds0.wxorder_order
  36 +#spring.shardingsphere.rules.sharding.tables.wxorder_order.database-strategy.hint.algorithm-class-name=com.taover.repository.shardingsphere.ShardingDatabaseAlgorithmHint
  37 +#spring.shardingsphere.rules.sharding.tables.wxorder_order.table-strategy.hint.algorithm-class-name=com.taover.repository.shardingsphere.ShardingTableAlgorithmHint
  38 +#spring.shardingsphere.rules.sharding.tables.wxorder_order.key-generate-strategy.column=id
  39 +#spring.shardingsphere.rules.sharding.tables.wxorder_order.key-generate-strategy.key-generator-name=SNOWFLAKE-SELF
  40 +
  41 +#spring.shardingsphere.rules.sharding.sharding-algorithms.database_inline.type=INLINE
  42 +#spring.shardingsphere.rules.sharding.sharding-algorithms.database_inline.props.algorithm-expression=ds_0
  43 +#spring.shardingsphere.rules.sharding.sharding-algorithms.table_inline.type=INLINE
  44 +#spring.shardingsphere.rules.sharding.sharding-algorithms.table_inline.props.algorithm-expression=wxorder_order
  45 +sql-show=true
49 taover.sharding.workerId=1 46 taover.sharding.workerId=1
50 taover.sharding.maxVibrationOffset=3 47 taover.sharding.maxVibrationOffset=3
51 taover.sharding.maxTolerateTimeDifferenceMilliseconds=1000 48 taover.sharding.maxTolerateTimeDifferenceMilliseconds=1000