application.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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: false
  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: -1
  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: 100MB
  66. max-history: 15
  67. charset:
  68. console: UTF-8
  69. mybatis-plus:
  70. mapperLocations: classpath*:mapper/**/*Mapper.xml
  71. checkConfigLocation: false
  72. global-config:
  73. banner: false
  74. enableSqlRunner: false
  75. dbConfig:
  76. idType: ASSIGN_ID
  77. logic-delete-field: isDelete
  78. logic-not-delete-value: 0
  79. logic-delete-value: 1
  80. configuration:
  81. log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  82. default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler
  83. cache-enabled: true
  84. type-aliases-package: com.nb.bus.entity
  85. captcha:
  86. enable: true
  87. width: 140
  88. height: 38
  89. #验证码过期时间 5min
  90. expire: 300