/service-buses-problem-spring-boot

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.

Primary LanguageJavaBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Service Buses API Problem Spring Boot

CI workflow Release workflow semantic-release: conventional-commits

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.

Installation

  1. Authenticating to GitHub Packages
  2. Maven
  3. Gradle

Usage

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);
  }
}