Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-api-boot
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-api-boot
Commits
1ea64067
提交
1ea64067
authored
4月 07, 2022
作者:
方治民
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 新增 jpa spatial 依赖及相关配置
上级
4ef09ffc
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
17 行增加
和
6 行删除
+17
-6
build.gradle
app/build.gradle
+7
-0
application-dev.yml
app/src/main/resources/application-dev.yml
+1
-1
application-mock.yml
app/src/main/resources/application-mock.yml
+1
-1
build.gradle
build.gradle
+8
-4
没有找到文件。
app/build.gradle
浏览文件 @
1ea64067
...
@@ -33,4 +33,11 @@ dependencies {
...
@@ -33,4 +33,11 @@ dependencies {
// fastjson
// fastjson
implementation
"com.alibaba:fastjson:${fastJsonVersion}"
implementation
"com.alibaba:fastjson:${fastJsonVersion}"
// JPA 增加空间字段支持
// https://blog.wuwii.com/jpa-spatial.html
implementation
"org.hibernate:hibernate-spatial:${hibernateSpatialVersion}"
// JTS 几何对象操作库
implementation
"org.locationtech.jts:jts-core:${jtsVersion}"
}
}
app/src/main/resources/application-dev.yml
浏览文件 @
1ea64067
...
@@ -8,7 +8,7 @@ spring:
...
@@ -8,7 +8,7 @@ spring:
username
:
postgres
username
:
postgres
password
:
123456
password
:
123456
jpa
:
jpa
:
database-platform
:
org.hibernate.
dialect.PostgreSQL
Dialect
database-platform
:
org.hibernate.
spatial.dialect.postgis.PostgisPG10
Dialect
open-in-view
:
true
open-in-view
:
true
hibernate
:
hibernate
:
ddl-auto
:
update
ddl-auto
:
update
...
...
app/src/main/resources/application-mock.yml
浏览文件 @
1ea64067
...
@@ -8,7 +8,7 @@ spring:
...
@@ -8,7 +8,7 @@ spring:
username
:
sa
username
:
sa
password
:
123456
password
:
123456
jpa
:
jpa
:
database-platform
:
org.hibernate.
dialect.H2
Dialect
database-platform
:
org.hibernate.
spatial.dialect.h2geodb.GeoDB
Dialect
open-in-view
:
true
open-in-view
:
true
hibernate
:
hibernate
:
ddl-auto
:
update
ddl-auto
:
update
...
...
build.gradle
浏览文件 @
1ea64067
...
@@ -6,21 +6,25 @@ buildscript {
...
@@ -6,21 +6,25 @@ buildscript {
// https://mvnrepository.com/artifact/com.github.xiaoymin/knife4j-spring-boot-starter
// https://mvnrepository.com/artifact/com.github.xiaoymin/knife4j-spring-boot-starter
knife4jVersion
=
'2.0.9'
knife4jVersion
=
'2.0.9'
// https://mvnrepository.com/artifact/io.swagger/swagger-annotations
// https://mvnrepository.com/artifact/io.swagger/swagger-annotations
swaggerAnnotationsVersion
=
'1.6.
4
'
swaggerAnnotationsVersion
=
'1.6.
5
'
// https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator
// https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator
hibernateValidatorVersion
=
'6.0.23.Final'
hibernateValidatorVersion
=
'7.0.4.Final'
// https://mvnrepository.com/artifact/org.hibernate.orm/hibernate-spatial
hibernateSpatialVersion
=
'5.4.33.Final'
// https://mvnrepository.com/artifact/cn.dev33/sa-token-spring-boot-starter
// https://mvnrepository.com/artifact/cn.dev33/sa-token-spring-boot-starter
saTokenVersion
=
'1.2
8.0
'
saTokenVersion
=
'1.2
9.1.trial
'
// https://mvnrepository.com/artifact/cn.hutool/hutool-all
// https://mvnrepository.com/artifact/cn.hutool/hutool-all
hutoolVersion
=
'5.7.22'
hutoolVersion
=
'5.7.22'
// https://mvnrepository.com/artifact/com.alibaba/fastjson
// https://mvnrepository.com/artifact/com.alibaba/fastjson
fastJsonVersion
=
'1.2.
79
'
fastJsonVersion
=
'1.2.
80
'
// https://mvnrepository.com/artifact/com.xuxueli/xxl-job-core
// https://mvnrepository.com/artifact/com.xuxueli/xxl-job-core
xxlJobVersion
=
'2.3.0'
xxlJobVersion
=
'2.3.0'
// https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
// https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp
okhttpVersion
=
'4.9.3'
okhttpVersion
=
'4.9.3'
// https://mvnrepository.com/artifact/io.minio/minio
// https://mvnrepository.com/artifact/io.minio/minio
minioVersion
=
'8.3.7'
minioVersion
=
'8.3.7'
// https://mvnrepository.com/artifact/org.locationtech.jts/jts-core
jtsVersion
=
'1.18.2'
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论