application-dev.yml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # 数据源配置
  2. spring:
  3. datasource:
  4. type: com.alibaba.druid.pool.DruidDataSource
  5. driverClassName: com.mysql.cj.jdbc.Driver
  6. druid:
  7. # 主库数据源
  8. master:
  9. url: jdbc:mysql://192.168.1.12:3306/db_mcyc?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false
  10. # url: jdbc:mysql://webapplication.rwlb.rds.aliyuncs.com:3306/xtdb?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false
  11. # username: jerry
  12. # password: zjr38zjR@
  13. username: root
  14. password: 123456
  15. # url: jdbc:mysql://localhost:3306/xtdb?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false
  16. # username: root
  17. # password: 1234
  18. # 从库数据源
  19. slave:
  20. # 从数据源开关/默认关闭
  21. enabled: false
  22. url:
  23. username:
  24. password:
  25. # 初始连接数
  26. initialSize: 5
  27. # 最小连接池数量
  28. minIdle: 10
  29. # 最大连接池数量
  30. maxActive: 20
  31. # 配置获取连接等待超时的时间
  32. maxWait: 60000
  33. # 配置连接超时时间
  34. connectTimeout: 30000
  35. # 配置网络超时时间
  36. socketTimeout: 60000
  37. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  38. timeBetweenEvictionRunsMillis: 60000
  39. # 配置一个连接在池中最小生存的时间,单位是毫秒
  40. minEvictableIdleTimeMillis: 300000
  41. # 配置一个连接在池中最大生存的时间,单位是毫秒
  42. maxEvictableIdleTimeMillis: 900000
  43. # 配置检测连接是否有效
  44. validationQuery: SELECT 1 FROM DUAL
  45. testWhileIdle: true
  46. testOnBorrow: false
  47. testOnReturn: false
  48. webStatFilter:
  49. enabled: true
  50. statViewServlet:
  51. enabled: true
  52. # 设置白名单,不填则允许所有访问
  53. allow:
  54. url-pattern: /druid/*
  55. # 控制台管理用户名和密码
  56. login-username: xzl
  57. login-password: 123456
  58. filter:
  59. stat:
  60. enabled: true
  61. # 慢SQL记录
  62. log-slow-sql: true
  63. slow-sql-millis: 1000
  64. merge-sql: true
  65. wall:
  66. config:
  67. multi-statement-allow: true
  68. pythonFilePath: /usr/local/python/
  69. pythonPath: /usr/local/Cellar/python@3.10/3.10.11/bin/python3.10
  70. sqlFilePath: /usr/local/sql
  71. ERImagePath: /usr/local/ERImage