Skip to content

Commit 26395f1

Browse files
committed
DATAMONGO-1546 - Register GeoJsonConfiguration via spring.factories.
Related tickets: DATACMNS-952.
1 parent ecd8dae commit 26395f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/GeoJsonConfiguration.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015 the original author or authors.
2+
* Copyright 2015-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,15 +17,14 @@
1717

1818
import org.springframework.context.annotation.Bean;
1919
import org.springframework.data.mongodb.core.geo.GeoJsonModule;
20-
import org.springframework.data.web.config.SpringDataWebConfigurationMixin;
20+
import org.springframework.data.web.config.SpringDataJacksonModules;
2121

2222
/**
2323
* Configuration class to expose {@link GeoJsonModule} as a Spring bean.
2424
*
2525
* @author Oliver Gierke
2626
*/
27-
@SpringDataWebConfigurationMixin
28-
public class GeoJsonConfiguration {
27+
public class GeoJsonConfiguration implements SpringDataJacksonModules {
2928

3029
@Bean
3130
public GeoJsonModule geoJsonModule() {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.springframework.data.web.config.SpringDataJacksonModules=org.springframework.data.mongodb.core.GeoJsonConfiguration

0 commit comments

Comments
 (0)