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)