Skip to content

WebFlux doesn't render HTTP status error templates #15083

@butterfly-valley

Description

@butterfly-valley

When I try to create a demo project on spring initializr and choose spring-boot-starter-webflux I can't for my life customize my error pages. I have tried putting the templates under /resources/public/error, /resources/templates/error (I am using Thymeleaf), defining a custom ErrorController to no avail. Each time I want to throw a 404 page for example the application throws the WhiteLabel page. BUT when I change the dependency to spring-boot-starter-web it picks my templates right away.

Is there some other way of declaring the error pages or this is just a bug (currently using Spring Boot 2.1.0.RELEASE)?

I eventually remedied the issue by falling back to 2.0.5 but it is no solution.

Thanks in advance.

Copy of the issue on stackoverflow

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions