Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.15 KB

README.md

File metadata and controls

48 lines (37 loc) · 1.15 KB

Example for configuring HTTP/3 in Spring Boot application

Prerequisites

Configure Reactor Netty version

Bump Reactor BOM version in pom.xml

<properties>
	<reactor-bom.version>2024.0.0</reactor-bom.version>
</properties>

Add dependency to Netty Http3 Codec

In pom.xml add dependency to netty-incubator-codec-http3

<dependency>
	<groupId>io.netty.incubator</groupId>
	<artifactId>netty-incubator-codec-http3</artifactId>
	<version>0.0.28.Final</version>
	<scope>runtime</scope>
</dependency>

Configure SSL Bundle

In application.properties add the SSL configuration

spring.ssl.bundle.jks.server-http3.key.alias...
spring.ssl.bundle.jks.server-http3.keystore...

More information about SSL Bundle settings:

Available endpoints

Hello Endpoint

This endpoint showcases HTTP/3 server support

curl --http3 https://localhost:8443/hello -v

Remote Endpoint

This endpoint showcases HTTP/3 client support

curl --http3 https://localhost:8443/remote -v