application.properties 2.94 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
spring.shardingsphere.datasource.common.type=com.alibaba.druid.pool.DruidDataSource
spring.shardingsphere.datasource.common.driver-class-name=com.mysql.cj.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.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.rules.sharding.tables.wxorder_order.actual-data-nodes=ds0.wxorder_order
#spring.shardingsphere.rules.sharding.tables.wxorder_order.database-strategy.hint.algorithm-class-name=com.taover.repository.shardingsphere.ShardingDatabaseAlgorithmHint
#spring.shardingsphere.rules.sharding.tables.wxorder_order.table-strategy.hint.algorithm-class-name=com.taover.repository.shardingsphere.ShardingTableAlgorithmHint
#spring.shardingsphere.rules.sharding.tables.wxorder_order.key-generate-strategy.column=id
#spring.shardingsphere.rules.sharding.tables.wxorder_order.key-generate-strategy.key-generator-name=SNOWFLAKE-SELF

#spring.shardingsphere.rules.sharding.sharding-algorithms.database_inline.type=INLINE
#spring.shardingsphere.rules.sharding.sharding-algorithms.database_inline.props.algorithm-expression=ds_0
#spring.shardingsphere.rules.sharding.sharding-algorithms.table_inline.type=INLINE
#spring.shardingsphere.rules.sharding.sharding-algorithms.table_inline.props.algorithm-expression=wxorder_order
sql-show=true
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