ruoyi-cloud-flowable nacos配置

# spring配置

spring:

redis:

host: localhost

port: 6379

password:

datasource:

dynamic:

primary: db1 # 配置默认数据库

datasource:

db1: # 数据源1配置

url: jdbc:mysql://localhost:3306/ry_cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true

username: root

password: 5430012

driver-class-name: com.mysql.cj.jdbc.Driver

durid:

initial-size: 5

min-idle: 5

maxActive: 20

maxWait: 60000

timeBetweenEvictionRunsMillis: 60000

minEvictableIdleTimeMillis: 300000

validationQuery: SELECT 1 FROM DUAL

testWhileIdle: true

testOnBorrow: false

testOnReturn: false

poolPreparedStatements: true

maxPoolPreparedStatementPerConnectionSize: 20

filters: stat,slf4j

connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000

autoconfigure:

exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure # 去除druid配置

# mybatis配置

mybatis:

# 搜索指定包别名

typeAliasesPackage: com.ruoyi.flowable.domain

# 配置mapper的扫描,找到所有的mapper.xml映射文件

mapperLocations: classpath:mapper/**/*.xml

# flowable相关表

flowable:

# true 会对数据库中所有表进行更新操作。如果表不存在,则自动创建(建议开发时使用)

database-schema-update: true

# 关闭定时任务JOB

async-executor-activate: false

# swagger配置

swagger:

title: 代码生成接口文档

license: Powered By ruoyi

licenseUrl: https://ruoyi.vip

你可能感兴趣的:(java,java)