application.yml 2.3 KB

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