You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
3.1 KiB
91 lines
3.1 KiB
|
1 week ago
|
logging:
|
||
|
|
level:
|
||
|
|
# 这里设置的日志级别优先于logback-spring.xml文件Loggers中的日志级别。
|
||
|
|
apelet: info
|
||
|
|
config: classpath:logback-spring.xml
|
||
|
|
|
||
|
|
server:
|
||
|
|
port: 8702
|
||
|
|
|
||
|
|
application:
|
||
|
|
consumerTopic: TenantSync
|
||
|
|
consumerGroup: consumer_default_tenant_sync
|
||
|
|
|
||
|
|
datasync:
|
||
|
|
producer:
|
||
|
|
# tenant-sync服务作为单纯的消费者,不需要打开该选项。
|
||
|
|
enabled: false
|
||
|
|
consumer:
|
||
|
|
# 由于数据同步使用的是顺序消费模式,一旦返回消费失败,会被MQ立刻重新投递给消费者,并反复执行。
|
||
|
|
# 为了更好的控制重试逻辑,避免不间断的反复重试,添加下面两个配置参数。
|
||
|
|
# 消费者执行业务逻辑失败后的重试次数。
|
||
|
|
retryCountOnFail: 1
|
||
|
|
# 消费者执行业务逻辑失败后的重试间隔时间,单位毫秒。
|
||
|
|
retryIntervalMilliseconds: 2000
|
||
|
|
|
||
|
|
rocketmq:
|
||
|
|
name-server: 127.0.0.1:9876
|
||
|
|
producer:
|
||
|
|
group: apelet_saas
|
||
|
|
|
||
|
|
mybatis-plus:
|
||
|
|
mapper-locations: classpath:apelet/tenantsync/*/dao/mapper/*Mapper.xml,apelet/common/report/dao/mapper/*Mapper.xml,apelet/common/online/dao/mapper/*Mapper.xml,apelet/common/datasync/dao/mapper/*Mapper.xml
|
||
|
|
type-aliases-package: apelet.tenantsync.*.model,apelet.common.report.model,apelet.common.online.model,apelet.common.datasync.model
|
||
|
|
global-config:
|
||
|
|
db-config:
|
||
|
|
logic-delete-value: -1
|
||
|
|
logic-not-delete-value: 1
|
||
|
|
|
||
|
|
pagehelper:
|
||
|
|
helperDialect: mysql
|
||
|
|
reasonable: true
|
||
|
|
supportMethodsArguments: false
|
||
|
|
params: count=countSql
|
||
|
|
|
||
|
|
# 开发数据库相关配置
|
||
|
|
spring:
|
||
|
|
datasource:
|
||
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
||
|
|
druid:
|
||
|
|
# 租户管理数据源。
|
||
|
|
tenant-admin:
|
||
|
|
url: jdbc:mysql://localhost:3306/apelet_admin?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
|
||
|
|
username: root
|
||
|
|
password: 123456
|
||
|
|
# 租户业务平台的通用业务数据,如字典、在线表单、流程、报表的定义等数据。
|
||
|
|
tenant-common:
|
||
|
|
url: jdbc:mysql://localhost:3306/apelet?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
|
||
|
|
username: root
|
||
|
|
password: 123456
|
||
|
|
# 租户业务数据源。
|
||
|
|
tenant-business:
|
||
|
|
url: jdbc:mysql://localhost:3306/apelet?characterEncoding=utf8&useSSL=true&serverTimezone=Asia/Shanghai
|
||
|
|
username: root
|
||
|
|
password: 123456
|
||
|
|
driverClassName: com.mysql.cj.jdbc.Driver
|
||
|
|
name: tenant-sync
|
||
|
|
initialSize: 2
|
||
|
|
minIdle: 2
|
||
|
|
maxActive: 5
|
||
|
|
maxWait: 60000
|
||
|
|
timeBetweenEvictionRunsMillis: 60000
|
||
|
|
minEvictableIdleTimeMillis: 300000
|
||
|
|
poolPreparedStatements: true
|
||
|
|
maxPoolPreparedStatementPerConnectionSize: 20
|
||
|
|
maxOpenPreparedStatements: 20
|
||
|
|
validationQuery: SELECT 'x'
|
||
|
|
testWhileIdle: true
|
||
|
|
testOnBorrow: false
|
||
|
|
testOnReturn: false
|
||
|
|
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
||
|
|
filters: stat,wall
|
||
|
|
useGlobalDataSourceStat: true
|
||
|
|
web-stat-filter:
|
||
|
|
enabled: true
|
||
|
|
url-pattern: "/*"
|
||
|
|
exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*,/actuator/*"
|
||
|
|
stat-view-servlet:
|
||
|
|
enabled: true
|
||
|
|
urlPattern: /druid/*
|
||
|
|
resetEnable: true
|