application.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. spring:
  2. servlet:
  3. multipart:
  4. max-file-size: 10MB
  5. max-request-size: 15MB
  6. application:
  7. name: coffee-service.
  8. profiles:
  9. active: @profiles.active@
  10. jackson:
  11. time-zone: GMT+8
  12. server:
  13. port: 9090
  14. servlet:
  15. context-path: /api
  16. undertow:
  17. accesslog:
  18. enabled: true
  19. max-http-post-size: -1
  20. buffer-size: 512
  21. direct-buffers: true
  22. threads:
  23. io: 16
  24. worker: 256
  25. tio:
  26. websocket:
  27. server:
  28. port: 9000
  29. #心跳检测在业务层面自定义进行 ms 毫秒级 按照最后一次接受数据包算 30s
  30. heartbeat-timeout: 30000
  31. #是否支持集群,集群开启需要redis
  32. cluster:
  33. enabled: false
  34. # Sa-Token配置
  35. sa-token:
  36. # token名称 (同时也是cookie名称)
  37. token-name: Authorization
  38. # token有效期,单位s 默认30天, -1代表永不过期
  39. timeout: 2592000
  40. # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒 一天
  41. activity-timeout: 86400
  42. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  43. is-concurrent: true
  44. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  45. is-share: false
  46. # token风格
  47. token-style: simple-uuid
  48. # 是否输出操作日志
  49. is-log: true
  50. # 是否从cookie读取token
  51. is-read-cookie: false
  52. logging:
  53. level:
  54. com.coffee: @logging.level@
  55. org.springframework: debug
  56. config: classpath:logback-spring.xml
  57. file:
  58. path: ./logs
  59. mybatis-plus:
  60. mapperPackage: com.coffee.**.mapper
  61. mapperLocations: classpath*:mapper/**/*Mapper.xml
  62. checkConfigLocation: false
  63. global-config:
  64. banner: false
  65. enableSqlRunner: false
  66. dbConfig:
  67. idType: ASSIGN_ID
  68. configuration:
  69. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  70. default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler
  71. type-aliases-package: com.coffee.bus.entity
  72. captcha:
  73. enable: true
  74. width: 140
  75. height: 38
  76. #验证码过期时间 5min
  77. expire: 300