application.yaml 1.22 KB
server:
  port: 8080
  compression:
    enabled: true
    excluded-user-agents: gozilla,traviata
    mime-types: text/html,text/xml,text/plain,text/css,apply/json
  undertow:
    io-threads: 16
    worker-threads: 256
    buffer-size: 1024
    direct-buffers: true
  max-http-header-size: 104857600
spring:
  application:
    name: oss-server
  profiles:
    active: pro
  mvc:
    throw-exception-if-no-handler-found: true
    dispatch-options-request: true
    static-path-pattern: /**
  resources:
    add-mappings: false
    static-locations: classpath:/static/
  http:
    encoding:
      charset: UTF-8
      enabled: true
      force: true
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: GMT+8
    default-property-inclusion: non_null
  jpa:
    hibernate:
      ddl-auto: update
    show-sql: true
  redis:
    host: 127.0.0.1
    port: 6379
    lettuce:
      pool:
        max-idle: 8
        min-idle: 1
        max-wait: 60000ms
        max-active: 8
      shutdown-timeout: 100ms
    password: Jovaunn1
    database: 0
  servlet:
    multipart:
      enabled: true
      max-file-size: 100MB
      max-request-size: 100MB
#TOKEN工具
jwt:
  header: Authorization
  secret: isaoss
  expiration: 2678400
  tokenHead: "cat "