Skip to content

Commit

Permalink
M3-120 Deps : Point 자료형 직렬화를 위한 jackson-datatype-jts 의존성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
qjvk2880 committed Jun 27, 2024
1 parent d317474 commit c797660
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
implementation group: 'org.hibernate', name: 'hibernate-spatial', version: '6.4.2.Final'
implementation group: 'org.n52.jackson', name: 'jackson-datatype-jts', version: '1.2.10'

compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.mysql:mysql-connector-j'
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/m3pro/groundflip/config/GeometryConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.locationtech.jts.geom.GeometryFactory;
import org.locationtech.jts.geom.PrecisionModel;
import org.n52.jackson.datatype.jts.JtsModule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

Expand All @@ -13,4 +14,9 @@ public class GeometryConfig {
public GeometryFactory geometryFactory() {
return new GeometryFactory(new PrecisionModel(), WGS84_SRID);
}

@Bean
public JtsModule jtsModule() {
return new JtsModule();
}
}

0 comments on commit c797660

Please sign in to comment.