-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Jackson 3.x GeoJson (de-)serializers #5102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Adds a GeoJsonJackson3Module. Closes #5100
| * | ||
| * @author Jens Schauder | ||
| */ | ||
| public class GeoJsonJackson3Configuration implements SpringDataJackson3Modules { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the opportunity I think we should align the naming our newly added GeoJson Jackson3 support to follow what is outlined in spring-projects/spring-data-redis#3219
|
|
||
| public class GeoJsonJackson3Module { | ||
|
|
||
| private static Version version = new Version(3, 2, 0, null, "org.springframework.data", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version should be updated
| @ContextConfiguration | ||
| public class GeoJsonConfigurationIntegrationTests { | ||
| public class GeoJsonJackson3ConfigurationIntegrationTests { | ||
|
|
||
| @Configuration | ||
| @EnableSpringDataWebSupport | ||
| static class Config {} | ||
|
|
||
| @Autowired GeoJsonModule geoJsonModule; | ||
| @Autowired | ||
| GeoJsonJackson3Module geoJsonModule; | ||
|
|
||
| @Test // DATAMONGO-1181 | ||
| @Test // GH-5100 | ||
| public void picksUpGeoJsonModuleConfigurationByDefault() { | ||
| assertThat(geoJsonModule).isNotNull(); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not remove the the wiring of the old module since it is still present and should be picked up in case Jackson2 is present. SpringDataWebConfigurationImportSelector will pick and choose based on what's present.
It should still be possible to wire the old one.
| * @author Bjorn Harvold | ||
| * @author Jens Schauder | ||
| */ | ||
| @RunWith(SpringRunner.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we might want to move to junit jupiter here
|
@schauder mind naming (initial) branches for existing issues following the established pattern without adding any extra |
Adds a GeoJsonJackson3Module.
Closes #5100