spring: servlet: multipart: max-file-size: 1024MB max-request-size: 1024MB enabled: true application: name: nb profiles: active: dev jackson: time-zone: GMT+8 server: port: 9090 servlet: context-path: /api undertow: accesslog: enabled: false max-http-post-size: -1 buffer-size: 1024 direct-buffers: true threads: io: 16 worker: 256 no-request-timeout: 3m tio: websocket: server: port: 9000 #心跳检测在业务层面自定义进行 ms 毫秒级 按照最后一次接受数据包算 20s heartbeat-timeout: 20000 #是否支持集群,集群开启需要redis cluster: enabled: false # Sa-Token配置 sa-token: # token名称 (同时也是cookie名称) token-name: Authorization # token有效期,单位s 默认30天, -1代表永不过期 timeout: -1 # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒 一天 activity-timeout: -1 # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录) is-concurrent: true # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token) is-share: false # token风格 token-style: simple-uuid # 是否输出操作日志 is-log: false # 是否从cookie读取token is-read-cookie: false # 是否打开续签 auto-renew: true logging: level: springfox: error com.nb: info config: classpath:logback-spring.xml file: path: ./logs logback: rollingpolicy: max-file-size: 100MB max-history: 15 charset: console: UTF-8 mybatis-plus: mapperLocations: classpath*:mapper/**/*Mapper.xml checkConfigLocation: false global-config: banner: false enableSqlRunner: false dbConfig: idType: ASSIGN_ID logic-delete-field: isDelete logic-not-delete-value: 0 logic-delete-value: 1 configuration: log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler cache-enabled: true type-aliases-package: com.nb.bus.entity captcha: enable: true width: 140 height: 38 #验证码过期时间 5min expire: 300