提交 0b3fc81a 作者: 方治民

合并分支 'master' 到 'dev_fzm'

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

查看合并请求 chemical-kesai/kshg-api!9
...@@ -44,4 +44,7 @@ dependencies { ...@@ -44,4 +44,7 @@ dependencies {
// JTS 几何对象操作库 // JTS 几何对象操作库
implementation "org.locationtech.jts:jts-core:${jtsVersion}" 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 { ...@@ -67,17 +67,18 @@ public class LocationLog implements Serializable {
BigDecimal altitude; BigDecimal altitude;
@Comment("坐标点信息") @Comment("坐标点信息")
@Column(columnDefinition = "POINT")
Point point; Point point;
@Comment("信标集合") @Comment("信标集合")
@Builder.Default @Builder.Default
@OneToMany @ManyToMany
@ToString.Exclude @ToString.Exclude
Set<LocationBeacon> beacons = new HashSet<>(0); Set<LocationBeacon> beacons = new HashSet<>(0);
@Comment("围栏集合") @Comment("围栏集合")
@Builder.Default @Builder.Default
@OneToMany @ManyToMany
@ToString.Exclude @ToString.Exclude
Set<LocationFence> fences = new HashSet<>(0); Set<LocationFence> fences = new HashSet<>(0);
......
...@@ -5,7 +5,7 @@ env: ...@@ -5,7 +5,7 @@ env:
spring: spring:
datasource: datasource:
url: jdbc:postgresql://${env.host}:5432/kshg_app url: jdbc:postgresql://${env.host}:5432/kshg_app
username: postgres username: admin
password: 123456 password: 123456
jpa: jpa:
database-platform: com.yiring.app.config.dialect.PostgresDialect database-platform: com.yiring.app.config.dialect.PostgresDialect
...@@ -19,8 +19,13 @@ spring: ...@@ -19,8 +19,13 @@ spring:
redis: redis:
database: 5 database: 5
host: ${env.host} host: ${env.host}
rabbitmq:
host: ${env.host}
port: 5672
username: admin
password: 123456 password: 123456
# knife4j # knife4j
knife4j: knife4j:
enable: true enable: true
......
...@@ -8,7 +8,7 @@ spring: ...@@ -8,7 +8,7 @@ spring:
name: "kshg-api" name: "kshg-api"
profiles: profiles:
include: auth include: auth
active: mock active: dev
# DEBUG # DEBUG
debug: false debug: false
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论