图书馆智能管理系统
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.

125 lines
3.8 KiB

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