Skip to content

Sample reactive application using a web filter with Spring Boot and WebFlux

Notifications You must be signed in to change notification settings

fbeaufume/webflux-filter-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WebFlux Filter Sample

This is a sample Spring Boot reactive application with a web filter.

This is also a minimalistic working example for https://stackoverflow.com/questions/52668050/spring-webflux-statuscode-is-null-in-a-webfilter and https://jira.spring.io/browse/SPR-17368

As a conclusion it seems that org.springframework.web.server.WebFilter requires ResponseEntity in the REST controller return types to correctly retrieve the HTTP response status.

Run with mvn spring-boot:run.

Then connect to various URL and see the HTTP response status from the web filter in the application logs:

About

Sample reactive application using a web filter with Spring Boot and WebFlux

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published