pals. I\'m using vividsolutions\'s library JTS (1.13) for Points and Polygons in my application, but when I try to convert geometry objects into JSON, my application fails. Ther
If you're using Spring Boot, this is enough:
pom.xml
:
com.bedatadriven
jackson-datatype-jts
2.3
JacksonConfig.java
:
package org.lskk.lumen.helpdesk;
import com.bedatadriven.jackson.datatype.jts.JtsModule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class JacksonConfig {
@Bean
public JtsModule jtsModule() {
return new JtsModule();
}
}