Davide Cerbo

Sep 23, 2019

1 min read

Serving static resources with Spring WebFlux and Kotlin

When you start a WebFlux project you haven’t the support for static resources, like HTML, CSS and JS files, provided by Spring Boot project. Unfortunately how to solve this simple task isn’t so well documented, so I decided to write this post.

The simplest way I found is to define a resource router as you can see below:

Open-space invader, bug hunter and software writer

Love podcasts or audiobooks? Learn on the go with our new app.