Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-api-boot
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-api-boot
Commits
2eb322c7
继续操作前请注册或者登录。
提交
2eb322c7
authored
11月 24, 2025
作者:
方治民
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: upgrade deps(SpringBoot v3.5.8)
上级
049063f2
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
28 行增加
和
23 行删除
+28
-23
build.gradle
app/build.gradle
+2
-0
application-mock.yml
app/src/main/resources/application-mock.yml
+2
-0
build.gradle
build.gradle
+16
-15
gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
+1
-1
IpUtil.java
...mon/util/src/main/java/com/yiring/common/util/IpUtil.java
+5
-3
StompReceiver.java
...src/main/java/com/yiring/websocket/web/StompReceiver.java
+0
-2
settings.gradle
settings.gradle
+2
-2
没有找到文件。
app/build.gradle
浏览文件 @
2eb322c7
...
...
@@ -2,6 +2,7 @@ apply plugin: "com.gorylenko.gradle-git-properties"
group
=
'com.yiring'
version
=
'0.0.1-SNAPSHOT'
description
=
'basic api boot starter'
processResources
{
// 将 gradle 配置注入配置文件
...
...
@@ -22,6 +23,7 @@ dependencies {
implementation
'org.springframework.boot:spring-boot-starter-web'
implementation
'org.springframework.boot:spring-boot-starter-data-jpa'
implementation
'org.springframework.boot:spring-boot-starter-validation'
implementation
'org.springframework.boot:spring-boot-starter-actuator'
// Sentry
implementation
"io.sentry:sentry-spring-boot-starter-jakarta"
...
...
app/src/main/resources/application-mock.yml
浏览文件 @
2eb322c7
...
...
@@ -53,3 +53,5 @@ logging:
org.hibernate.type.descriptor.sql.BasicBinder
:
trace
# request log
com.yiring.common.aspect.RequestAspect
:
info
loki
:
enabled
:
false
build.gradle
浏览文件 @
2eb322c7
...
...
@@ -2,14 +2,14 @@ plugins {
id
'java'
id
'java-library'
// https://start.spring.io
id
'org.springframework.boot'
version
'3.5.
5
'
id
'org.springframework.boot'
version
'3.5.
8
'
id
'org.graalvm.buildtools.native'
version
'0.10.6'
// https://plugins.gradle.org/plugin/io.spring.dependency-management
id
'io.spring.dependency-management'
version
'1.1.7'
// https://plugins.gradle.org/plugin/com.diffplug.spotless
id
"com.diffplug.spotless"
version
"
7.2.1
"
id
"com.diffplug.spotless"
version
"
8.1.0
"
// https://plugins.gradle.org/plugin/com.gorylenko.gradle-git-properties
id
"com.gorylenko.gradle-git-properties"
version
"2.5.
2
"
id
"com.gorylenko.gradle-git-properties"
version
"2.5.
4
"
}
ext
{
...
...
@@ -29,43 +29,43 @@ ext {
// SpringBootAdmin
// https://central.sonatype.com/artifact/de.codecentric/spring-boot-admin-starter-server
springBootAdminVersion
=
'3.5.
2
'
springBootAdminVersion
=
'3.5.
6
'
// Sentry
// https://central.sonatype.com/artifact/io.sentry/sentry-spring-boot-starter-jakarta
sentryVersion
=
'8.2
0
.0'
sentryVersion
=
'8.2
7
.0'
// Dependencies
// https://central.sonatype.com/artifact/com.github.xiaoymin/knife4j-openapi3-jakarta-spring-boot-starter
knife4jOpen3Version
=
'4.5.0'
// https://central.sonatype.com/artifact/io.swagger.core.v3/swagger-annotations
swaggerAnnotationsVersion
=
'2.2.
36
'
swaggerAnnotationsVersion
=
'2.2.
40
'
// https://central.sonatype.com/artifact/cn.dev33/sa-token-spring-boot3-starter
saTokenVersion
=
'1.44.0'
// https://central.sonatype.com/artifact/cn.hutool/hutool-core
hutoolVersion
=
'5.8.4
0
'
hutoolVersion
=
'5.8.4
1
'
// https://central.sonatype.com/artifact/com.alibaba.fastjson2/fastjson2
fastJsonVersion
=
'2.0.
58
'
fastJsonVersion
=
'2.0.
60
'
// https://central.sonatype.com/artifact/com.xuxueli/xxl-job-core
xxlJobVersion
=
'3.2.0'
// https://central.sonatype.com/artifact/io.minio/minio
minioVersion
=
'8.
5.17
'
minioVersion
=
'8.
6.0
'
// https://central.sonatype.com/artifact/io.hypersistence/hypersistence-utils-hibernate-63
hibernateTypesVersion
=
'3.1
0.3
'
hibernateTypesVersion
=
'3.1
2.0
'
// https://central.sonatype.com/artifact/org.hibernate.orm/hibernate-spatial
hibernateSpatialVersion
=
'7.1.0.Final'
hibernateSpatialVersion
=
'7.1.
1
0.Final'
// https://central.sonatype.com/artifact/org.locationtech.jts/jts-core
jtsVersion
=
'1.20.0'
// https://mvnrepository.com/artifact/org.n52.jackson/jackson-datatype-jts
jacksonDatatypeJtsVersion
=
'
1.2.1
0'
jacksonDatatypeJtsVersion
=
'
2.0.
0'
// https://central.sonatype.com/artifact/com.github.liaochong/myexcel
myexcelVersion
=
'4.5.6'
// https://central.sonatype.com/artifact/org.jetbrains/annotations
jetbrainsAnnotationsVersion
=
'26.0.2'
jetbrainsAnnotationsVersion
=
'26.0.2
-1
'
// https://central.sonatype.com/artifact/org.apache.pdfbox/pdfbox
pdfboxVersion
=
'3.0.
5
'
pdfboxVersion
=
'3.0.
6
'
// https://central.sonatype.com/artifact/org.lionsoul/ip2region
ip2regionVersion
=
'
2.7.0
'
ip2regionVersion
=
'
3.1.1
'
// https://central.sonatype.com/artifact/com.github.piomin/loki-logging-spring-boot-starter
lokiLoggingVersion
=
'2.0.3'
// https://central.sonatype.com/artifact/com.github.ulisesbocchio/jasypt-spring-boot-starter
...
...
@@ -108,6 +108,7 @@ subprojects {
dependencies
{
implementation
'org.springframework.boot:spring-boot-starter'
testImplementation
'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly
'org.junit.platform:junit-platform-launcher'
compileOnly
'org.projectlombok:lombok'
annotationProcessor
'org.projectlombok:lombok'
annotationProcessor
'org.springframework.boot:spring-boot-configuration-processor'
...
...
gradle/wrapper/gradle-wrapper.properties
浏览文件 @
2eb322c7
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
distributionUrl
=
https
\:
//mirrors.aliyun.com/gradle/distributions/v8.1
2.1/gradle-8.12.1
-bin.zip
distributionUrl
=
https
\:
//mirrors.aliyun.com/gradle/distributions/v8.1
4.3/gradle-8.14.3
-bin.zip
networkTimeout
=
10000
validateDistributionUrl
=
true
zipStoreBase
=
GRADLE_USER_HOME
...
...
modules/common/util/src/main/java/com/yiring/common/util/IpUtil.java
浏览文件 @
2eb322c7
...
...
@@ -7,7 +7,9 @@ import java.util.regex.Matcher;
import
java.util.regex.Pattern
;
import
lombok.experimental.UtilityClass
;
import
lombok.extern.slf4j.Slf4j
;
import
org.lionsoul.ip2region.xdb.LongByteArray
;
import
org.lionsoul.ip2region.xdb.Searcher
;
import
org.lionsoul.ip2region.xdb.Version
;
import
org.springframework.core.io.ClassPathResource
;
import
org.springframework.util.FileCopyUtils
;
...
...
@@ -42,9 +44,9 @@ public class IpUtil {
static
{
try
{
ClassPathResource
resource
=
new
ClassPathResource
(
"ipdb/ip2region.xdb"
);
InputStream
i
nputStream
=
resource
.
getInputStream
();
byte
[]
bytes
=
FileCopyUtils
.
copyToByteArray
(
inputStream
);
searcher
=
Searcher
.
newWithBuffer
(
bytes
);
InputStream
i
s
=
resource
.
getInputStream
();
byte
[]
bytes
=
FileCopyUtils
.
copyToByteArray
(
resource
.
getInputStream
()
);
searcher
=
Searcher
.
newWithBuffer
(
Version
.
IPv4
,
new
LongByteArray
(
bytes
)
);
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
}
...
...
modules/websocket/src/main/java/com/yiring/websocket/web/StompReceiver.java
浏览文件 @
2eb322c7
...
...
@@ -16,7 +16,6 @@ import java.util.Set;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.messaging.handler.annotation.MessageMapping
;
import
org.springframework.messaging.simp.SimpMessagingTemplate
;
import
org.springframework.messaging.simp.annotation.SendToUser
;
import
org.springframework.messaging.simp.stomp.StompHeaderAccessor
;
import
org.springframework.messaging.simp.user.SimpUser
;
...
...
@@ -37,7 +36,6 @@ import org.springframework.stereotype.Controller;
public
class
StompReceiver
{
final
Auths
auths
;
final
SimpMessagingTemplate
simpMessagingTemplate
;
final
SimpUserRegistry
simpUserRegistry
;
final
StompUserRegistry
stompUserRegistry
;
...
...
settings.gradle
浏览文件 @
2eb322c7
pluginManagement
{
repositories
{
maven
{
url
"https://maven.aliyun.com/repository/gradle-plugin"
}
maven
{
url
"https://maven.aliyun.com/repository/spring-plugin"
}
//
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
//
maven { url "https://maven.aliyun.com/repository/spring-plugin" }
gradlePluginPortal
()
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论