This sample shows you how to integrate Zalando's Problem framework into the Spring Web layer of a Spring Boot application.
This sample does neither use the problem-spring-web-starter
nor the problem-spring-web-autoconfigure
module.
The reason is that using the auto configuration would result in having two filter chains configured.
One filter chain would be configured through the SecurityConfiguration of the problem-spring-web-autoconfigure
module and the other filter chain would be configured through the SpringBootWebSecurityConfiguration of the spring-boot-autoconfigure
module.
If this auto configuration applies the filter chain which should apply is the second one in line therefore the service is not acting as expected. Therefore the service is configuring the filter chain and all related and necessary parts on it's own to prevent the unwanted behavior.
- Problem Details for HTTP APIs
- A Guide to the Problem Spring Web Library
- Exception Handling in Spring MVC
Collection of the mainly used frameworks in this project. There are more, but they are not that present inside the main use case therefore they are not listed here.
This code is open source software licensed under the Apache 2.0 License.