DATAREST-577 - Removed obsolete dependency to configuration from RepositoryResourceMappings.
This avoids a cyclic dependency between the configuration and the mappings that caused bootstrap issues.
This commit is contained in:
@@ -526,11 +526,7 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon
|
||||
|
||||
@Bean
|
||||
public ResourceMappings resourceMappings() {
|
||||
|
||||
Repositories repositories = repositories();
|
||||
RepositoryRestConfiguration config = config();
|
||||
|
||||
return new RepositoryResourceMappings(config, repositories);
|
||||
return new RepositoryResourceMappings(repositories());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -94,7 +94,7 @@ public class RepositoryTestsConfig {
|
||||
|
||||
@Bean
|
||||
public Module persistentEntityModule() {
|
||||
return new PersistentEntityJackson2Module(new RepositoryResourceMappings(config(), repositories()),
|
||||
return new PersistentEntityJackson2Module(new RepositoryResourceMappings(repositories()),
|
||||
persistentEntities(), config(), new UriToEntityConverter(persistentEntities(), defaultConversionService()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user