电子档案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
3.7 KiB

  1. spring:
  2. datasource:
  3. druid:
  4. db-type: com.alibaba.druid.pool.DruidDataSource
  5. driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
  6. url: jdbc:log4jdbc:mysql://${DB_HOST:192.168.99.107}:${DB_PORT:3306}/${DB_NAME:yxk_intellarchives}?serverTimezone=Asia/Shanghai&characterEncoding=utf-8&allowPublicKeyRetrieval=true&useSSL=false&nullCatalogMeansCurrent=true
  7. username: ${DB_USER:root}
  8. password: ${DB_PWD:ftzn83560792}
  9. # 初始连接数
  10. initial-size: 5
  11. # 最小连接数
  12. min-idle: 10
  13. # 最大连接数
  14. max-active: 20
  15. # 获取连接超时时间
  16. max-wait: 5000
  17. # 连接有效性检测时间
  18. time-between-eviction-runs-millis: 60000
  19. # 连接在池中最小生存的时间
  20. min-evictable-idle-time-millis: 300000
  21. # 连接在池中最大生存的时间
  22. max-evictable-idle-time-millis: 900000
  23. test-while-idle: true
  24. test-on-borrow: false
  25. test-on-return: false
  26. useGlobalDataSourceStat: true
  27. # 检测连接是否有效
  28. validation-query: select 1
  29. # 配置监控统计
  30. webStatFilter:
  31. enabled: true
  32. stat-view-servlet:
  33. enabled: true
  34. url-pattern: /druid/*
  35. reset-enable: false
  36. login-username: admin
  37. login-password: 123456
  38. filter:
  39. stat:
  40. enabled: true
  41. # 记录慢SQL
  42. log-slow-sql: true
  43. slow-sql-millis: 1000
  44. merge-sql: false
  45. wall:
  46. config:
  47. multi-statement-allow: true
  48. # 登录相关配置
  49. login:
  50. # 登录缓存
  51. cache-enable: true
  52. # 是否限制单用户登录
  53. single-login: false
  54. # 验证码
  55. login-code:
  56. # 验证码类型配置 查看 LoginProperties 类
  57. code-type: arithmetic
  58. # 登录图形验证码有效时间/分钟
  59. expiration: 2
  60. # 验证码高度
  61. width: 111
  62. # 验证码宽度
  63. height: 36
  64. # 内容长度
  65. length: 2
  66. # 字体名称,为空则使用默认字体
  67. font-name:
  68. # 字体大小
  69. font-size: 25
  70. #jwt
  71. jwt:
  72. header: Authorization
  73. # 令牌前缀
  74. token-start-with: Bearer
  75. # 必须使用最少88位的Base64对该令牌进行编码
  76. base64-secret: ZmQ0ZGI5NjQ0MDQwY2I4MjMxY2Y3ZmI3MjdhN2ZmMjNhODViOTg1ZGE0NTBjMGM4NDA5NzYxMjdjOWMwYWRmZTBlZjlhNGY3ZTg4Y2U3YTE1ODVkZDU5Y2Y3OGYwZWE1NzUzNWQ2YjFjZDc0NGMxZWU2MmQ3MjY1NzJmNTE0MzI= # 令牌过期时间 此处单位/毫秒 ,默认4小时,可在此网站生成 https://www.convertworld.com/zh-hans/time/milliseconds.html
  77. token-validity-in-seconds: 14400000
  78. # 在线用户key
  79. online-key: online-token-
  80. # 验证码
  81. code-key: code-key-
  82. # token 续期检查时间范围(默认30分钟,单位毫秒),在token即将过期的一段时间内用户操作了,则给用户的token续期
  83. detect: 14400000
  84. # 续期时间范围,默认1小时,单位毫秒
  85. renew: 14400000
  86. #是否开启 swagger-ui
  87. swagger:
  88. enabled: true
  89. # IP 本地解析
  90. ip:
  91. local-parsing: true
  92. # 文件存储路径
  93. file:
  94. mac:
  95. path: ~/file/
  96. avatar: ~/avatar/
  97. linux:
  98. path: /home/yxk_App/file/
  99. avatar: /home/yxk_App/avatar/
  100. flat: /home/yxk_App/flat/
  101. windows:
  102. path: D:\yxk_App\file\
  103. avatar: D:\yxk_App\avatar\
  104. flat: D:\yxk_App\flat\
  105. offlineFolder: D:\yxk_App\offlineFolder\
  106. # 文件大小 /M
  107. maxSize: 100
  108. avatarMaxSize: 10
  109. accessFile:
  110. resourceHandler: /downloadFile/**
  111. location: D:\yxk_App\file\
  112. neo4j:
  113. url: bolt://192.168.99.107:7687
  114. username: neo4j
  115. password: ftzn83560792
  116. python:
  117. url: http://127.0.0.1
  118. # url: http://192.168.99.112
  119. database-param:
  120. DB_HOST: 192.168.99.107
  121. DB_PORT: 3306
  122. DB_NAME: yxk_intellarchives