application.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. spring:
  2. application:
  3. name: coffee-service
  4. profiles:
  5. active: @profiles.active@
  6. jackson:
  7. time-zone: GMT+8
  8. date-format: yyyy-MM-dd HH:mm:ss
  9. server:
  10. port: 9090
  11. servlet:
  12. context-path: /api
  13. undertow:
  14. accesslog:
  15. enabled: true
  16. max-http-post-size: -1
  17. buffer-size: 512
  18. direct-buffers: true
  19. threads:
  20. io: 16
  21. worker: 256
  22. tio:
  23. websocket:
  24. server:
  25. port: 9000
  26. #心跳检测在业务层面自定义进行
  27. heartbeat-timeout: -1
  28. #是否支持集群,集群开启需要redis
  29. cluster:
  30. enabled: false
  31. # Sa-Token配置
  32. sa-token:
  33. # token名称 (同时也是cookie名称)
  34. token-name: Authorization
  35. # token有效期,单位s 默认30天, -1代表永不过期
  36. timeout: 2592000
  37. # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
  38. activity-timeout: -1
  39. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  40. is-concurrent: true
  41. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  42. is-share: false
  43. # token风格
  44. token-style: simple-uuid
  45. # 是否输出操作日志
  46. is-log: true
  47. # 是否从cookie读取token
  48. is-read-cookie: false
  49. logging:
  50. level:
  51. com.coffee: @logging.level@
  52. org.springframework: warn
  53. config: classpath:logback.xml
  54. mybatis-plus:
  55. mapperPackage: com.coffee.**.mapper
  56. mapperLocations: classpath*:mapper/**/*Mapper.xml
  57. checkConfigLocation: false
  58. global-config:
  59. banner: false
  60. enableSqlRunner: false
  61. dbConfig:
  62. idType: ASSIGN_ID
  63. configuration:
  64. log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  65. default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler
  66. # 阿里云对接配置
  67. aliyun:
  68. data-access:
  69. enable: false # 是否开启阿里云物联网订阅