From bc5a265ff934073f75be568ab3f87db99b9eed9d 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 cca041824..7ff9965c2 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 @@ -683,6 +683,8 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon configurerDelegate.configureExceptionHandlerExceptionResolver(er); + er.afterPropertiesSet(); + exceptionResolvers.add(0, er); }