application.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. tio:
  20. websocket:
  21. server:
  22. port: 9000
  23. #心跳检测在业务层面自定义进行
  24. heartbeat-timeout: -1
  25. #是否支持集群,集群开启需要redis
  26. cluster:
  27. enabled: false
  28. # Sa-Token配置
  29. sa-token:
  30. # token名称 (同时也是cookie名称)
  31. token-name: Authorization
  32. # token有效期,单位s 默认30天, -1代表永不过期
  33. timeout: 2592000
  34. # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
  35. activity-timeout: -1
  36. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  37. is-concurrent: true
  38. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  39. is-share: false
  40. # token风格
  41. token-style: simple-uuid
  42. # 是否输出操作日志
  43. is-log: true
  44. # 是否从cookie读取token
  45. is-read-cookie: false
  46. logging:
  47. level:
  48. com.coffee: @logging.level@
  49. org.springframework: warn
  50. config: classpath:logback.xml
  51. mybatis-plus:
  52. mapperPackage: com.coffee.**.mapper
  53. mapperLocations: classpath*:mapper/**/*Mapper.xml
  54. checkConfigLocation: false
  55. global-config:
  56. banner: false
  57. enableSqlRunner: false
  58. dbConfig:
  59. idType: ASSIGN_ID
  60. configuration:
  61. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  62. # 阿里云对接配置
  63. aliyun:
  64. data-access:
  65. enable: false # 是否开启阿里云物联网订阅