application.yml 2.3 KB

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