application.properties
3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
server.port=80
server.session.timeout=3600
spring.servlet.multipart.max-file-size=10MB
spring.servlet.multipart.max-request-size=20MB
spring.jackson.time-zone=GMT+8
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
spring.mvc.dateFormat = yyyy-MM-dd HH:mm:ss
spring.gson.serialize-nulls=true
spring.mvc.dispatch-options-request=true
# shardingspere
spring.shardingsphere.datasource.names=ds0
spring.shardingsphere.datasource.common.type=com.alibaba.druid.pool.DruidDataSource
spring.shardingsphere.datasource.common.driver-class-name=com.mysql.jdbc.Driver
spring.shardingsphere.datasource.ds0.url=jdbc:mysql://rdsifmezqifmezqo.mysql.rds.aliyuncs.com:3306/bzyun_wxorder?characterEncoding=UTF-8
spring.shardingsphere.datasource.ds0.username=tylife
spring.shardingsphere.datasource.ds0.password=lexi365
spring.shardingsphere.datasource.ds0.initial-size=10
spring.shardingsphere.datasource.ds0.max-active=20
spring.shardingsphere.datasource.ds0.min-idle=5
spring.shardingsphere.datasource.ds0.max-wait=60000
#spring.shardingsphere.datasource.ds1.type=com.alibaba.druid.pool.DruidDataSource
#spring.shardingsphere.datasource.ds1.driver-class-name=com.mysql.jdbc.Driver
#spring.shardingsphere.datasource.ds1.url=jdbc:mysql://121.42.142.102:3306/bzyun_wxorder?characterEncoding=UTF-8
#spring.shardingsphere.datasource.ds1.username=dev
#spring.shardingsphere.datasource.ds1.password=taover02
#spring.shardingsphere.datasource.ds1.initial-size=10
#spring.shardingsphere.datasource.ds1.max-active=20
#spring.shardingsphere.datasource.ds1.min-idle=5
#spring.shardingsphere.datasource.ds1.max-wait=60000
#
#spring.shardingsphere.sharding.tables.wxorder_order.actual-data-nodes=ds0.wxorder_order,ds1.wxorder_order
#spring.shardingsphere.sharding.tables.wxorder_order.database-strategy.hint.algorithm-class-name=com.taover.repository.shardingsphere.ShardingDatabaseAlgorithmHint
#spring.shardingsphere.sharding.tables.wxorder_order.table-strategy.hint.algorithm-class-name=com.taover.repository.shardingsphere.ShardingTableAlgorithmHint
#spring.shardingsphere.sharding.tables.wxorder_order.key-generator.column=id
#spring.shardingsphere.sharding.tables.wxorder_order.key-generator.type=SNOWFLAKE-SELF
#
#spring.shardingsphere.sharding.tables.wxorder_order_goods.actual-data-nodes=ds0.wxorder_order_goods
#spring.shardingsphere.sharding.tables.wxorder_order_goods.database-strategy.hint.algorithm-class-name=com.taover.repository.shardingsphere.ShardingDatabaseAlgorithmHint
#spring.shardingsphere.sharding.tables.wxorder_order_goods.table-strategy.hint.algorithm-class-name=com.taover.repository.shardingsphere.ShardingTableAlgorithmHint
#spring.shardingsphere.sharding.tables.wxorder_order_goods.key-generator.column=id
#spring.shardingsphere.sharding.tables.wxorder_order_goods.key-generator.type=SNOWFLAKE-SELF
taover.sharding.workerId=1
taover.sharding.maxVibrationOffset=3
taover.sharding.maxTolerateTimeDifferenceMilliseconds=1000
#spring.shardingsphere.sharding.default-key-generator.key-generator.column=id
#spring.shardingsphere.sharding.default-key-generator.type=SNOWFLAKE-SELF
#spring.shardingsphere.sharding.default-key-generator.props.worker.id=1
#spring.shardingsphere.sharding.default-key-generator.props.max.vibration.offset=3
#spring.shardingsphere.sharding.default-key-generator.props.max.tolerate.time.difference.milliseconds=1000