123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- server:
- port: 8888
- 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: 5000
- upload:
- local_path: ../upload/
- web_url: /upload/
- water: /upload
- font: ./NotoSansCJK-Bold.ttc
- third:
- wechat:
- pc:
- appId: wx324965bb6800f9b9
- appSecret: 51b8bf5029502d8eccb7a658529b1372
- native:
- appId: wxbee75af2ece94ed7
- appSecret: efdef63acfae765b0b890072e12a0198
- questionTemplate: 123123
- courseTemplate: 1312
- redirectUrl: http://www.duoshaojiaoyu.com/gateway/oauth
- pay:
- wechat:
- appId: wxbee75af2ece94ed7
- notifyUrl: http://www.duoshaojiaoyu.com/gateway/pay
- video:
- ffmpeg: ffmpeg
- url:
- pc: http://www.duoshaojiaoyu.com
- h5: http://h5.duoshaojiaoyu.com
|