From 3fa13a60a76b838c4c04c11bd56afc5f8dadbc83 Mon Sep 17 00:00:00 2001 From: Jon Brisbin Date: Tue, 9 Oct 2012 09:13:49 -0500 Subject: [PATCH] Make RepositoryRestConfiguration bean optional by defaulting. --- .../data/rest/webmvc/json/RepositoryAwareJacksonModule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/RepositoryAwareJacksonModule.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/RepositoryAwareJacksonModule.java index 3f523578b..79c88c0d6 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/RepositoryAwareJacksonModule.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/json/RepositoryAwareJacksonModule.java @@ -57,8 +57,8 @@ import org.springframework.http.converter.HttpMessageNotReadableException; */ public class RepositoryAwareJacksonModule extends SimpleModule implements InitializingBean { - @Autowired - private RepositoryRestConfiguration config; + @Autowired(required = false) + private RepositoryRestConfiguration config = RepositoryRestConfiguration.DEFAULT; @Autowired(required = false) protected List repositoryExporters = Collections.emptyList(); @Autowired(required = false)