From ac75ec56d22d491a6969a3d4cbd271f03249cce8 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Fri, 9 Jun 2017 09:57:22 +0200 Subject: [PATCH] DATAREST-1031 - Fixed setup of ExceptionHandlerExceptionResolver. Fixed the setup of our custom ExceptionHandlerExceptionResolver to conclude with a call to afterPropertiesSet() to make sure it's properly initialized. --- .../data/rest/webmvc/config/RepositoryRestMvcConfiguration.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java index a2b47b103..514f50ea9 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java @@ -673,6 +673,8 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon configurerDelegate.configureExceptionHandlerExceptionResolver(er); + er.afterPropertiesSet(); + exceptionResolvers.add(0, er); }