application-runtime.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. server:
  2. port: 8888
  3. tomcat:
  4. uri-encoding: utf-8
  5. spring:
  6. datasource:
  7. druid:
  8. # 数据库访问配置, 使用druid数据源
  9. type: com.alibaba.druid.pool.DruidDataSource
  10. driver-class-name: com.mysql.cj.jdbc.Driver
  11. url: jdbc:mysql://127.0.0.1:3306/qianxing?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true
  12. username: qianxing
  13. password: qianxing
  14. # 连接池配置
  15. initial-size: 5
  16. min-idle: 5
  17. max-active: 20
  18. # 连接等待超时时间
  19. max-wait: 30000
  20. # 配置检测可以关闭的空闲连接间隔时间
  21. time-between-eviction-runs-millis: 60000
  22. # 配置连接在池中的最小生存时间
  23. min-evictable-idle-time-millis: 300000
  24. validation-query: select '1' from dual
  25. test-while-idle: true
  26. test-on-borrow: false
  27. test-on-return: false
  28. # 打开PSCache,并且指定每个连接上PSCache的大小
  29. pool-prepared-statements: true
  30. max-open-prepared-statements: 20
  31. max-pool-prepared-statement-per-connection-size: 20
  32. # 配置监控统计拦截的filters, 去掉后监控界面sql无法统计, 'wall'用于防火墙
  33. filters: stat
  34. # Spring监控AOP切入点,如x.y.z.service.*,配置多个英文逗号分隔
  35. aop-patterns: cc.mrbird.servie.*
  36. # WebStatFilter配置
  37. web-stat-filter:
  38. enabled: true
  39. # 添加过滤规则
  40. url-pattern: /*
  41. # 忽略过滤的格式
  42. exclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*'
  43. # StatViewServlet配置
  44. stat-view-servlet:
  45. enabled: true
  46. # 访问路径为/druid时,跳转到StatViewServlet
  47. url-pattern: /druid/*
  48. # 是否能够重置数据
  49. reset-enable: false
  50. # 需要账号密码才能访问控制台
  51. login-username: druid
  52. login-password: druid123
  53. # IP白名单
  54. # allow: 127.0.0.1
  55. # IP黑名单(共同存在时,deny优先于allow)
  56. # deny: 192.168.1.218
  57. # 配置StatFilter
  58. filter:
  59. stat:
  60. log-slow-sql: true
  61. redis:
  62. # Redis数据库索引(默认为0)
  63. database: 0
  64. # Redis服务器地址
  65. host: 127.0.0.1
  66. # Redis服务器连接端口
  67. port: 6379
  68. lettuce:
  69. pool:
  70. # 连接池中的最小空闲连接
  71. min-idle: 8
  72. # 连接池中的最大空闲连接
  73. max-idle: 500
  74. # 连接池最大连接数(使用负值表示没有限制)
  75. max-active: 2000
  76. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  77. max-wait: 10000
  78. # 连接超时时间(毫秒)
  79. timeout: 5000
  80. upload:
  81. local_path: ../upload/
  82. web_url: /upload/
  83. third:
  84. wechat:
  85. pc:
  86. appId: wx324965bb6800f9b9
  87. appSecret: 51b8bf5029502d8eccb7a658529b1372
  88. native:
  89. appId: wxbee75af2ece94ed7
  90. appSecret: efdef63acfae765b0b890072e12a0198
  91. questionTemplate: 123123
  92. courseTemplate: 1312
  93. redirectUrl: http://www.qianxing.com/gateway/oauth
  94. pay:
  95. notifyUrl: http://www.qianxing.com/gateway/pay
  96. video:
  97. ffmpeg: ffmpeg
  98. url:
  99. pc: http://www.qianxing.com
  100. h5: http://h5.qianxing.com