Skip to content

violetagg/spring-webflux-http3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages