Skip to content

Provide a more flexible way to configure the ObjectMapper which used by the MongoDataImport #54

Description

@antkorwin

example of necessary configuration:

public class MongoDataImport implements DataSetImport {

     ..

    public MongoDataImport(MongoTemplate mongoTemplate) {
        ..
        this.objectMapper = new ObjectMapper();
        this.objectMapper.registerModule(new GeoJsonModule());
        this.objectMapper.registerModule(new JavaTimeModule());  !!!
    }

add an additional module in the ObjectMapper

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions