Service Buses API Problem is a package that includes commands and queries information in API problem responses and their logging events in a Spring Boot application.
The simplest integration would look as follows
@ControllerAdvice
public final class ProblemErrorHandler
extends ActionApiProblemHandler
implements ActionThrowableAdvice {
private final HandlerMapping mapping;
public ProblemErrorHandler(
@Qualifier("requestMappingHandlerMapping") HandlerMapping mapping) {
super(mapping);
}
}