application.properties 3.24 KB

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,ds1
spring.shardingsphere.datasource.ds0.type=com.alibaba.druid.pool.DruidDataSource
spring.shardingsphere.datasource.ds0.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