application.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # 项目配置
  2. like:
  3. #upload-directory: /www/uploads/likeadmin-java/ # 上传目录
  4. # 验证码配置
  5. captcha:
  6. # 是否开启验证码
  7. status: false
  8. # 验证码有效时长
  9. expire: 120
  10. # 验证码缓存键名
  11. token: "captcha:key:"
  12. # Swagger配置
  13. swagger:
  14. # 是否开启swagger
  15. enabled: true
  16. # 请求前缀
  17. pathMapping: /
  18. # 框架配置
  19. spring:
  20. profiles:
  21. active: @profiles.active@
  22. mvc:
  23. static-path-pattern: /api/static/**
  24. throw-exception-if-no-handler-found: true
  25. pathmatch:
  26. matching-strategy: ant_path_matcher
  27. # 限制配置
  28. servlet:
  29. multipart:
  30. max-file-size: 100MB # 文件上传大小限制
  31. max-request-size: 100MB # 文件最大请求限制
  32. enabled: true
  33. # Redis配置
  34. redis:
  35. lettuce:
  36. pool:
  37. max-wait: 30000 # 连接池最大阻塞等待时间(使用负数表示没有限制,默认-1)
  38. max-active: 100 # 连接池最大连接数(使用负数表示没有限制,默认8)
  39. max-idle: 20 # 连接池中的最大空闲连接(默认8)
  40. min-idle: 0 # 连接池中的最小空闲连接(默认0)
  41. jackson:
  42. date-format: yyyy-MM-dd HH:mm:ss
  43. time-zone: GMT+8
  44. # Mybatis-plus配置
  45. mybatis-plus:
  46. mapper-locations: classpath*:/mapper/**Mapper.xml
  47. typeAliasesPackage: com.sckj.**.mapper
  48. global-config:
  49. banner: false
  50. db-config:
  51. table-prefix: la_
  52. update-strategy: not_null
  53. configuration-properties:
  54. prefix: la_
  55. # configuration:
  56. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  57. # Sa-token配置
  58. sa-token:
  59. token-name: token # token的名称
  60. timeout: 2592000 # token有效期单位s(默认30天,-1代表永不过期)
  61. activity-timeout: -1 # token临时有效期(指定时间无操作掉线)
  62. is-concurrent: true # 是否允许同一账号并发登录
  63. is-share: false # 多人同登账号共用token
  64. token-style: random-64 # token生成的风格
  65. is-print: false # 打印版本字符画
  66. is-log: false # 是否输出操作日志