application-prod.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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://10.124.252.246:3306/nerp-db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true&rewriteBatchedStatements=true
  10. username: root
  11. password: '!QAZ2root'
  12. # 从库数据源
  13. slave:
  14. # 从数据源开关/默认关闭
  15. enabled: false
  16. url:
  17. username:
  18. password:
  19. # 初始连接数
  20. initialSize: 5
  21. # 最小连接池数量
  22. minIdle: 10
  23. # 最大连接池数量
  24. maxActive: 20
  25. # 配置获取连接等待超时的时间
  26. maxWait: 60000
  27. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  28. timeBetweenEvictionRunsMillis: 60000
  29. # 配置一个连接在池中最小生存的时间,单位是毫秒
  30. minEvictableIdleTimeMillis: 300000
  31. # 配置一个连接在池中最大生存的时间,单位是毫秒
  32. maxEvictableIdleTimeMillis: 900000
  33. # 配置检测连接是否有效
  34. validationQuery: SELECT 1 FROM DUAL
  35. testWhileIdle: true
  36. testOnBorrow: false
  37. testOnReturn: false
  38. webStatFilter:
  39. enabled: true
  40. statViewServlet:
  41. enabled: true
  42. # 设置白名单,不填则允许所有访问
  43. allow:
  44. url-pattern: /druid/*
  45. # 控制台管理用户名和密码
  46. login-username: nerp
  47. login-password: nerp
  48. filter:
  49. stat:
  50. enabled: true
  51. # 慢SQL记录
  52. log-slow-sql: true
  53. slow-sql-millis: 1000
  54. merge-sql: true
  55. wall:
  56. config:
  57. multi-statement-allow: true
  58. # redis 配置
  59. redis:
  60. # 地址
  61. host: 10.124.252.244
  62. # 端口,默认为6379
  63. port: 6379
  64. # 数据库索引
  65. database: 0
  66. # 密码
  67. password: jiayue
  68. # 连接超时时间
  69. timeout: 10s
  70. lettuce:
  71. pool:
  72. # 连接池中的最小空闲连接
  73. min-idle: 0
  74. # 连接池中的最大空闲连接
  75. max-idle: 8
  76. # 连接池的最大数据库连接数
  77. max-active: 8
  78. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  79. max-wait: -1ms
  80. #
  81. #mybatis-plus:
  82. # configuration:
  83. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #开启sql日志
  84. file:
  85. outPutDir: "D:\\out\\new\\"
  86. excelDir: "D:\\analysisData\\new\\"
  87. outPutBackDir: "D:\\out\\backUps\\"
  88. excelBackDir: "D:\\analysisData\\backUps\\"
  89. email:
  90. user: "wanghongchen942"
  91. password: "LXQDEOCRCSXWBIAO"
  92. host: "imap.126.com"
  93. path: "d:\\in\\"