| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- spring:
- servlet:
- multipart:
- max-file-size: 10MB
- max-request-size: 15MB
- application:
- name: nb-service.
- profiles:
- active: @profiles.active@
- jackson:
- time-zone: GMT+8
- server:
- port: 9090
- servlet:
- context-path: /api
- undertow:
- accesslog:
- enabled: true
- max-http-post-size: -1
- buffer-size: 512
- direct-buffers: true
- threads:
- io: 16
- worker: 256
- tio:
- websocket:
- server:
- port: 9000
- #心跳检测在业务层面自定义进行 ms 毫秒级 按照最后一次接受数据包算 30s
- heartbeat-timeout: 30000
- #是否支持集群,集群开启需要redis
- cluster:
- enabled: false
- # Sa-Token配置
- sa-token:
- # token名称 (同时也是cookie名称)
- token-name: Authorization
- # token有效期,单位s 默认30天, -1代表永不过期
- timeout: 2592000
- # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒 一天
- activity-timeout: 86400
- # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
- is-concurrent: true
- # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
- is-share: false
- # token风格
- token-style: simple-uuid
- # 是否输出操作日志
- is-log: true
- # 是否从cookie读取token
- is-read-cookie: false
- logging:
- level:
- com.nb: @logging.level@
- config: classpath:logback-spring.xml
- file:
- path: ./logs
- logback:
- rollingpolicy:
- max-file-size: 10MB
- charset:
- console: UTF-8
- mybatis-plus:
- mapperPackage: com.nb.**.mapper
- 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.stdout.StdOutImpl
- default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler
- type-aliases-package: com.nb.bus.entity
- captcha:
- enable: true
- width: 140
- height: 38
- #验证码过期时间 5min
- expire: 300
- management:
- endpoints:
- web:
- exposure:
- include: heapdump,metrics
|