提交 efb1a547 作者: 方治民

feat: 新增 JTS Jackson 序列化配置、开发环境依赖配置更新

上级 fead13d8
......@@ -44,4 +44,7 @@ dependencies {
// JTS 几何对象操作库
implementation "org.locationtech.jts:jts-core:${jtsVersion}"
// https://mvnrepository.com/artifact/com.graphhopper.external/jackson-datatype-jts
implementation 'com.graphhopper.external:jackson-datatype-jts:1.0-2.7'
}
/* (C) 2022 YiRing, Inc. */
package com.yiring.app.config;
import com.bedatadriven.jackson.datatype.jts.JtsModule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @author Jim
* @version 0.1
* 2022/4/8 11:18
*/
@Configuration
public class JtsModuleConfig {
@Bean
public JtsModule jtsModule() {
return new JtsModule();
}
}
......@@ -67,17 +67,18 @@ public class LocationLog implements Serializable {
BigDecimal altitude;
@Comment("坐标点信息")
@Column(columnDefinition = "POINT")
Point point;
@Comment("信标集合")
@Builder.Default
@OneToMany
@ManyToMany
@ToString.Exclude
Set<LocationBeacon> beacons = new HashSet<>(0);
@Comment("围栏集合")
@Builder.Default
@OneToMany
@ManyToMany
@ToString.Exclude
Set<LocationFence> fences = new HashSet<>(0);
......
......@@ -5,7 +5,7 @@ env:
spring:
datasource:
url: jdbc:postgresql://${env.host}:5432/kshg_app
username: postgres
username: admin
password: 123456
jpa:
database-platform: com.yiring.app.config.dialect.PostgresDialect
......@@ -19,8 +19,13 @@ spring:
redis:
database: 5
host: ${env.host}
rabbitmq:
host: ${env.host}
port: 5672
username: admin
password: 123456
# knife4j
knife4j:
enable: true
......
......@@ -8,7 +8,7 @@ spring:
name: "kshg-api"
profiles:
include: auth
active: mock
active: dev
# DEBUG
debug: false
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论