HTTP/2

通过配置 server.http2.enabled=true 开启

server:
  netty:
    worker-threads: 8
    acceptor-threads: 1
    max-connection: 10240000
    leak-detection: paranoid
    connection-timeout: 30s
    auto-ack-ping-frame: true
    auto-ack-settings-frame: true
    http2-graceful-shutdown-timeout: 29s
    auto-read: ${server.http2.enabled}

  use-virtual-thread-service-executor: true

  http2:
    enabled: true
    initial-settings:
      max-header-list-size: 1024
      push-enabled: false
      connect-protocol-enabled: false