93 lines
2.7 KiB
YAML
93 lines
2.7 KiB
YAML
spring:
|
||
application:
|
||
name: activiti-cloud
|
||
#Activiti property configuration
|
||
activiti:
|
||
database-schema-update: true
|
||
history-level: full
|
||
db-history-used: true
|
||
# redis:
|
||
# database: 0
|
||
# host: 192.168.100.145
|
||
# port: 6379
|
||
# password: root
|
||
# lettuce:
|
||
# pool:
|
||
# # 连接池中的最大空闲连接 默认8
|
||
# max-idle: 8
|
||
# # 连接池中的最小空闲连接 默认0
|
||
# min-idle: 0
|
||
# # 连接池最大连接数 默认8 ,负数表示没有限制
|
||
# max-active: 8
|
||
# # 连接池最大阻塞等待时间(使用负值表示没有限制) 默认-1
|
||
# max-wait: -1
|
||
# timeout: 30000
|
||
datasource:
|
||
url: jdbc:mysql://192.168.4.119:3306/activiti7?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
||
username: root
|
||
password: root
|
||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
type: com.alibaba.druid.pool.DruidDataSource
|
||
initialization-mode: always
|
||
initialSize: 5
|
||
minIdle: 5
|
||
maxActive: 20
|
||
maxWait: 60000
|
||
timeBetweenEvictionRunsMillis: 60000
|
||
minEvictableIdleTimeMillis: 300000
|
||
validationQuery: select 'x'
|
||
testWhileIdle: true
|
||
testOnBorrow: false
|
||
testOnReturn: false
|
||
poolPreparedStatements: true
|
||
filters: stat,wall,slf4j
|
||
maxPoolPreparedStatementPerConnectionSize: 20
|
||
useGlobalDataSourceStat: true
|
||
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
|
||
mvc:
|
||
view:
|
||
prefix: /templates/
|
||
suffix: .html
|
||
static-path-pattern: /static/**
|
||
mybatis:
|
||
mapper-locations: classpath:mapping/**
|
||
type-aliases-package: com.hcframe.activiti.entity
|
||
logging:
|
||
level:
|
||
com.hcframe.activiti: debug
|
||
pattern:
|
||
console: "%d{yyyy-MM-dd HH:mm:ss.SSS} %clr(-%5p) %clr(${PID:- }){magenta} --- %clr([%15.15t]){faint} %highlight(%-80.80logger{300}){cyan} %clr(:) %m %n%wEx"
|
||
server:
|
||
port: 8080
|
||
servlet:
|
||
context-path: /activiti
|
||
# 是否开启redis 用户登录,若开启此项,需要配置redis节点及相关配置,若不开启,需要注释掉redis相关配置信息
|
||
isRedisLogin: true
|
||
# 用户登陆超时设置,单位为小时,此值不能为0
|
||
login-time-out: 4
|
||
swagger:
|
||
# 配置controller包路径
|
||
path: com.hcframe.activiti.controller
|
||
# 是否开启权限
|
||
enableAuth: false
|
||
# 用户名
|
||
username: admin
|
||
# 密码
|
||
password: admin
|
||
# Druid连接配置
|
||
druid:
|
||
# Druid用户名
|
||
username: test
|
||
# Druid密码
|
||
password: test
|
||
# Druid 允许访问的IP,默认全部允许
|
||
# allow: 127.0.0.1
|
||
# Druid 拒绝访问的IP,默认不拒绝全部
|
||
# deny: 10.0.0.2
|
||
# 是否开启controller 日志显示
|
||
show-controller-log: true
|
||
eureka:
|
||
client:
|
||
service-url:
|
||
defaultZone: http://admin:123456@192.168.4.119:8081/eureka/
|