Uses of Class
org.springframework.web.servlet.config.annotation.ProblemDetailsConfigurer
Packages that use ProblemDetailsConfigurer
Package
Description
Annotation-based setup for Spring MVC.
-
Uses of ProblemDetailsConfigurer in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation that return ProblemDetailsConfigurerModifier and TypeMethodDescriptionprotected final ProblemDetailsConfigurerWebMvcConfigurationSupport.getProblemDetailsConfigurer()Returns theProblemDetailsConfigurer, as prepared byWebMvcConfigurationSupport.customizeProblemDetails(ProblemDetailsConfigurer).ProblemDetailsConfigurer.renderUnhandledExceptions(boolean renderUnhandledExceptions) Whether to render exceptions that are not handled by any@ExceptionHandlermethod as problem details, instead of only setting the response status and leaving the response body to the Servlet container.ProblemDetailsConfigurer.viewResolver(ErrorResponseViewResolver viewResolver) Configure anErrorResponseViewResolverto render problem details returned by@ExceptionHandlermethods as views, typically HTML error pages, when the client prefers HTML.Methods in org.springframework.web.servlet.config.annotation with parameters of type ProblemDetailsConfigurerModifier and TypeMethodDescriptiondefault voidWebMvcConfigurer.configureProblemDetails(ProblemDetailsConfigurer configurer) Configure how RFC 9457 problem details are produced and rendered, for example to render exceptions that are not handled by any@ExceptionHandlermethod as problem details.protected voidDelegatingWebMvcConfiguration.customizeProblemDetails(ProblemDetailsConfigurer configurer) protected voidWebMvcConfigurationSupport.customizeProblemDetails(ProblemDetailsConfigurer configurer) Override this method to configure how RFC 9457 problem details are produced and rendered by the defaultExceptionHandlerExceptionResolver.