# Tomcat server: tomcat: uri-encoding: UTF-8 threads: max: 1000 min-spare: 30 port: 8081 servlet: context-path: /api session: cookie: http-only: true knife4j: enable: true basic: enable: false username: admin password: admin setting: enableFooter: false spring: # 环境 dev|test|prod profiles: active: test messages: encoding: UTF-8 basename: i18n/messages # jackson时间格式化 jackson: time-zone: GMT+8 date-format: yyyy-MM-dd HH:mm:ss mvc: pathmatch: matching-strategy: ANT_PATH_MATCHER servlet: multipart: max-file-size: 100MB max-request-size: 100MB enabled: true data: redis: database: 0 host: 127.0.0.1 port: 6379 password: # 密码(默认为空) timeout: 6000ms # 连接超时时长(毫秒) lettuce: pool: max-active: 1000 # 连接池最大连接数(使用负值表示没有限制) max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制) max-idle: 10 # 连接池中的最大空闲连接 min-idle: 5 # 连接池中的最小空闲连接 renren: redis: open: true # 是否开启redis缓存 true开启 false关闭 #mybatis mybatis-plus: mapper-locations: classpath*:/mapper/**/*.xml #实体扫描,多个package用逗号或者分号分隔 typeAliasesPackage: com.qnfhq.entity global-config: #数据库相关配置 db-config: #主键类型 id-type: ASSIGN_ID banner: false #原生配置 configuration: map-underscore-to-camel-case: true cache-enabled: false call-setters-on-nulls: true jdbc-type-for-null: 'null' configuration-properties: prefix: blobType: BLOB boolValue: TRUE # token配置 token: # 令牌自定义标识 header: Authorization # 令牌密钥 secret: aecfp3duvwzqbcpjklmn1r2lhgwt3ghi9xter # 令牌有效期(默认30分钟) expireTime: 180 ############## Sa-Token 配置 (文档: https://sa-token.cc) ############## sa-token: # token 名称(同时也是 cookie 名称) token-name: satoken # token 有效期(单位:秒) 默认30天,-1 代表永久有效 timeout: 2592000 # token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结 active-timeout: -1 # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录) is-concurrent: true # 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token) is-share: false # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik) token-style: uuid # 是否输出操作日志 is-log: true # 日志等级(trace、debug、info、warn、error、fatal) log-level: error # 同一账号最大登录数量,-1代表不限 (只有在 isConcurrent=true,isShare=false 时此配置才有效) max-login-count: 2 #springdoc: # api-docs: # enabled: true # 启用/禁用API文档的访问 # path: /v3/api-docs # 设置API文档的访问路径 # swagger-ui: # path: /swagger-ui.html # 设置Swagger UI的访问路径 # enabled: true # default-flat-param-object: false