12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- server:
- port: 8080
- tomcat:
- uri-encoding: utf-8
- spring:
- datasource:
- druid:
- # 数据库访问配置, 使用druid数据源
- type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/qianxing?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true
- username: qianxing
- password: qianxing
- # 连接池配置
- initial-size: 5
- min-idle: 5
- max-active: 20
- # 连接等待超时时间
- max-wait: 30000
- # 配置检测可以关闭的空闲连接间隔时间
- time-between-eviction-runs-millis: 60000
- # 配置连接在池中的最小生存时间
- min-evictable-idle-time-millis: 300000
- validation-query: select '1' from dual
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- # 打开PSCache,并且指定每个连接上PSCache的大小
- pool-prepared-statements: true
- max-open-prepared-statements: 20
- max-pool-prepared-statement-per-connection-size: 20
- # 配置监控统计拦截的filters, 去掉后监控界面sql无法统计, 'wall'用于防火墙
- filters: stat
- # Spring监控AOP切入点,如x.y.z.service.*,配置多个英文逗号分隔
- aop-patterns: cc.mrbird.servie.*
- # WebStatFilter配置
- web-stat-filter:
- enabled: true
- # 添加过滤规则
- url-pattern: /*
- # 忽略过滤的格式
- exclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*'
- # StatViewServlet配置
- stat-view-servlet:
- enabled: true
- # 访问路径为/druid时,跳转到StatViewServlet
- url-pattern: /druid/*
- # 是否能够重置数据
- reset-enable: false
- # 需要账号密码才能访问控制台
- login-username: druid
- login-password: druid123
- # IP白名单
- # allow: 127.0.0.1
- # IP黑名单(共同存在时,deny优先于allow)
- # deny: 192.168.1.218
- # 配置StatFilter
- filter:
- stat:
- log-slow-sql: true
- redis:
- # Redis数据库索引(默认为0)
- database: 0
- # Redis服务器地址
- host: 127.0.0.1
- # Redis服务器连接端口
- port: 6379
- jedis:
- pool:
- # 连接池中的最小空闲连接
- min-idle: 8
- # 连接池中的最大空闲连接
- max-idle: 500
- # 连接池最大连接数(使用负值表示没有限制)
- max-active: 2000
- # 连接池最大阻塞等待时间(使用负值表示没有限制)
- max-wait: 10000
- # 连接超时时间(毫秒)
- timeout: 0
- upload:
- local_path: ./upload/
- web_url: /upload/
- third:
- redirectUrl: http://127.0.0.1:8080
- video:
- ffmpeg: ffmpeg
|