From a0bd7e79f03dd090de4d1a29fdf198b920ee7e5f 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 cb8279863..c93b39f53 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 @@ -656,6 +656,8 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon configurerDelegate.configureExceptionHandlerExceptionResolver(er); configureExceptionHandlerExceptionResolver(er); + er.afterPropertiesSet(); + return er; }