application.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. spring:
  2. application:
  3. name: coffee-service
  4. profiles:
  5. active: @profiles.active@
  6. server:
  7. port: 9090
  8. servlet:
  9. context-path: /api
  10. undertow:
  11. accesslog:
  12. enabled: true
  13. max-http-post-size: -1
  14. buffer-size: 512
  15. direct-buffers: true
  16. threads:
  17. io: 16
  18. worker: 256
  19. # Sa-Token配置
  20. sa-token:
  21. # token名称 (同时也是cookie名称)
  22. token-name: Authorization
  23. # token有效期,单位s 默认30天, -1代表永不过期
  24. timeout: 2592000
  25. # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
  26. activity-timeout: -1
  27. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  28. is-concurrent: true
  29. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  30. is-share: false
  31. # token风格
  32. token-style: simple-uuid
  33. # 是否输出操作日志
  34. is-log: true
  35. # 是否从cookie读取token
  36. is-read-cookie: false
  37. logging:
  38. level:
  39. com.coffee: @logging.level@
  40. org.springframework: warn
  41. config: classpath:logback.xml
  42. mybatis-plus:
  43. mapperPackage: com.coffee.**.mapper,com.coffee.framework.test.mapper
  44. mapperLocations: classpath*:mapper/**/*Mapper.xml
  45. checkConfigLocation: false
  46. global-config:
  47. banner: false
  48. enableSqlRunner: false
  49. dbConfig:
  50. idType: ASSIGN_ID