application-dev.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # 数据源配置
  2. spring:
  3. # redis 配置
  4. redis:
  5. # 地址
  6. host: 120.46.159.163
  7. # host: 192.168.10.40
  8. # 端口,默认为6379
  9. port: 7379
  10. # port: 6379
  11. # 数据库索引
  12. database: 1
  13. # 密码
  14. password: ezhizao.cn123456
  15. # 连接超时时间
  16. timeout: 10s
  17. lettuce:
  18. pool:
  19. # 连接池中的最小空闲连接
  20. min-idle: 0
  21. # 连接池中的最大空闲连接
  22. max-idle: 8
  23. # 连接池的最大数据库连接数
  24. max-active: 8
  25. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  26. max-wait: -1ms
  27. datasource:
  28. type: com.alibaba.druid.pool.DruidDataSource
  29. driverClassName: com.mysql.cj.jdbc.Driver
  30. druid:
  31. # 主库数据源
  32. master:
  33. url: jdbc:mysql://120.46.159.163:7306/ezhizao_dms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&rewriteBatchedStatements=true&serverTimezone=GMT%2B8
  34. # url: jdbc:mysql://localhost:3306/ezhizao_dms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&rewriteBatchedStatements=true&serverTimezone=GMT%2B8
  35. username: root
  36. password: ezhizao.cn@dms.40
  37. # 从库数据源
  38. # slave:
  39. # # 从数据源开关/默认关闭
  40. # enabled: true
  41. # url: jdbc:mysql://116.204.99.126:3306/snms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&rewriteBatchedStatements=true&serverTimezone=GMT%2B8
  42. # username: idis_user
  43. # password: Teleinfo-88
  44. # 初始连接数
  45. initialSize: 5
  46. # 最小连接池数量
  47. minIdle: 10
  48. # 最大连接池数量
  49. maxActive: 20
  50. # 配置获取连接等待超时的时间
  51. maxWait: 60000
  52. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  53. timeBetweenEvictionRunsMillis: 60000
  54. # 配置一个连接在池中最小生存的时间,单位是毫秒
  55. minEvictableIdleTimeMillis: 300000
  56. # 配置一个连接在池中最大生存的时间,单位是毫秒
  57. maxEvictableIdleTimeMillis: 900000
  58. # 配置检测连接是否有效
  59. validationQuery: SELECT 1 FROM DUAL
  60. testWhileIdle: true
  61. testOnBorrow: false
  62. testOnReturn: false
  63. webStatFilter:
  64. enabled: true
  65. statViewServlet:
  66. enabled: true
  67. # 设置白名单,不填则允许所有访问
  68. allow:
  69. url-pattern: /druid/*
  70. # 控制台管理用户名和密码
  71. login-username: admin
  72. login-password: ezhizao.cn
  73. filter:
  74. stat:
  75. enabled: true
  76. # 慢SQL记录
  77. log-slow-sql: true
  78. slow-sql-millis: 1000
  79. merge-sql: true
  80. wall:
  81. config:
  82. multi-statement-allow: true
  83. # 文件上传
  84. file:
  85. upload:
  86. path: /home/files/dms/upload/ # 实体路径
  87. url: /upload/** # 映射url
  88. type: xlsx,xls,txt,jpeg,jpg,doc,ppt,pptx,png,pdf,rar,zip,wps,gif,docx #支持的文件类型
  89. excelTemplate:
  90. url: D://Ezhizao//dms//templates/
  91. # 文件上传
  92. ruoyi:
  93. profile: D:/Ezhizao/identity/