All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.config.boot.yml Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
#服务器配置
server:
  undertow:
    ## 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
    io-threads: 16
    ## 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
    worker-threads: 400
    ## 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
    buffer-size: 1024
    ## 是否分配的直接内存
    direct-buffers: true

#spring配置
spring:
  devtools:
    restart:
      log-condition-evaluation-delta: false
  http:
    encoding:
      charset: UTF-8
      force: true
  servlet:
    multipart:
      max-file-size: 256MB
      max-request-size: 1024MB
  mvc:
    throw-exception-if-no-handler-found: true
  resources:
    ##是否启用默认资源处理
    ##add-mappings: false
    add-mappings: true
  webflux:
    multipart:
      max-disk-usage-per-part: 256MB
      max-memory-size-per-part: 1024MB





© 2015 - 2024 Weber Informatics LLC | Privacy Policy