Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
custom-server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhonghong
custom-server
Commits
c4f3408f
Commit
c4f3408f
authored
Jun 04, 2026
by
Lizh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http/https封装工具增加文件上传逻辑的处理,并且低调工具的目录到integrate目录下
parent
c43128f2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
17 deletions
+22
-17
custom-server-app/pom.xml
+0
-12
custom-server-integrate/pom.xml
+16
-0
custom-server-integrate/src/main/java/com/jomalls/custom/integrate/client/RemoteApiClient.java
+0
-0
custom-server-integrate/src/main/java/com/jomalls/custom/integrate/client/ResilienceEventListener.java
+1
-1
custom-server-integrate/src/main/java/com/jomalls/custom/integrate/configuration/WebClientConfig.java
+1
-1
custom-server-integrate/src/main/java/com/jomalls/custom/integrate/exception/RemoteServiceException.java
+1
-1
custom-server-starter/src/main/java/com/jomalls/custom/config/CommonExceptionHandlerAdvice.java
+1
-1
custom-server-starter/src/main/resources/application.properties
+2
-1
No files found.
custom-server-app/pom.xml
View file @
c4f3408f
...
@@ -46,17 +46,5 @@
...
@@ -46,17 +46,5 @@
<artifactId>
spring-boot-starter-aop
</artifactId>
<artifactId>
spring-boot-starter-aop
</artifactId>
<version>
4.0.0-M2
</version>
<version>
4.0.0-M2
</version>
</dependency>
</dependency>
<!-- WebClient for HTTP calls -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-webflux
</artifactId>
</dependency>
<!-- Resilience4j for circuit breaker and retry -->
<dependency>
<groupId>
io.github.resilience4j
</groupId>
<artifactId>
resilience4j-spring-boot3
</artifactId>
<version>
2.2.0
</version>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
custom-server-integrate/pom.xml
View file @
c4f3408f
...
@@ -25,5 +25,21 @@
...
@@ -25,5 +25,21 @@
<artifactId>
commons-collections
</artifactId>
<artifactId>
commons-collections
</artifactId>
<version>
3.2.2
</version>
<version>
3.2.2
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<optional>
true
</optional>
</dependency>
<!-- WebClient for HTTP calls -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-webflux
</artifactId>
</dependency>
<!-- Resilience4j for circuit breaker and retry -->
<dependency>
<groupId>
io.github.resilience4j
</groupId>
<artifactId>
resilience4j-spring-boot3
</artifactId>
<version>
2.2.0
</version>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
custom-server-
app/src/main/java/com/jomalls/custom/app
/client/RemoteApiClient.java
→
custom-server-
integrate/src/main/java/com/jomalls/custom/integrate
/client/RemoteApiClient.java
View file @
c4f3408f
This diff is collapsed.
Click to expand it.
custom-server-
app/src/main/java/com/jomalls/custom/app
/client/ResilienceEventListener.java
→
custom-server-
integrate/src/main/java/com/jomalls/custom/integrate
/client/ResilienceEventListener.java
View file @
c4f3408f
package
com
.
jomalls
.
custom
.
app
.
client
;
package
com
.
jomalls
.
custom
.
integrate
.
client
;
import
io.github.resilience4j.retry.event.RetryOnErrorEvent
;
import
io.github.resilience4j.retry.event.RetryOnErrorEvent
;
import
io.github.resilience4j.retry.event.RetryOnRetryEvent
;
import
io.github.resilience4j.retry.event.RetryOnRetryEvent
;
...
...
custom-server-
starter/src/main/java/com/jomalls/custom/config
/WebClientConfig.java
→
custom-server-
integrate/src/main/java/com/jomalls/custom/integrate/configuration
/WebClientConfig.java
View file @
c4f3408f
package
com
.
jomalls
.
custom
.
config
;
package
com
.
jomalls
.
custom
.
integrate
.
configuration
;
import
io.netty.channel.ChannelOption
;
import
io.netty.channel.ChannelOption
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
...
custom-server-
app/src/main/java/com/jomalls/custom/app
/exception/RemoteServiceException.java
→
custom-server-
integrate/src/main/java/com/jomalls/custom/integrate
/exception/RemoteServiceException.java
View file @
c4f3408f
package
com
.
jomalls
.
custom
.
app
.
exception
;
package
com
.
jomalls
.
custom
.
integrate
.
exception
;
import
lombok.Getter
;
import
lombok.Getter
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
...
...
custom-server-starter/src/main/java/com/jomalls/custom/config/CommonExceptionHandlerAdvice.java
View file @
c4f3408f
...
@@ -3,7 +3,7 @@ package com.jomalls.custom.config;
...
@@ -3,7 +3,7 @@ package com.jomalls.custom.config;
import
com.jomalls.custom.app.enums.CodeEnum
;
import
com.jomalls.custom.app.enums.CodeEnum
;
import
com.jomalls.custom.app.exception.InvalidTokenException
;
import
com.jomalls.custom.app.exception.InvalidTokenException
;
import
com.jomalls.custom.app.exception.PermissionDeniedException
;
import
com.jomalls.custom.app.exception.PermissionDeniedException
;
import
com.jomalls.custom.
app
.exception.RemoteServiceException
;
import
com.jomalls.custom.
integrate
.exception.RemoteServiceException
;
import
com.jomalls.custom.app.exception.ServiceException
;
import
com.jomalls.custom.app.exception.ServiceException
;
import
com.jomalls.custom.app.utils.R
;
import
com.jomalls.custom.app.utils.R
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
...
custom-server-starter/src/main/resources/application.properties
View file @
c4f3408f
...
@@ -65,6 +65,6 @@ resilience4j.retry.configs.default.exponential-backoff-multiplier=2
...
@@ -65,6 +65,6 @@ resilience4j.retry.configs.default.exponential-backoff-multiplier=2
# 以下异常触发重试(网络异常 + 服务端5xx错误)
# 以下异常触发重试(网络异常 + 服务端5xx错误)
resilience4j.retry.configs.default.retry-exceptions
=
java.util.concurrent.TimeoutException,java.io.IOException,java.net.ConnectException,org.springframework.web.reactive.function.client.WebClientResponseException
resilience4j.retry.configs.default.retry-exceptions
=
java.util.concurrent.TimeoutException,java.io.IOException,java.net.ConnectException,org.springframework.web.reactive.function.client.WebClientResponseException
# 以下异常不触发重试(客户端4xx错误已包装为RemoteServiceException,重试无意义)
# 以下异常不触发重试(客户端4xx错误已包装为RemoteServiceException,重试无意义)
resilience4j.retry.configs.default.ignore-exceptions
=
com.jomalls.custom.
app
.exception.RemoteServiceException
resilience4j.retry.configs.default.ignore-exceptions
=
com.jomalls.custom.
integrate
.exception.RemoteServiceException
# 远程 API 重试实例使用默认配置
# 远程 API 重试实例使用默认配置
resilience4j.retry.instances.remoteApi.base-config
=
default
resilience4j.retry.instances.remoteApi.base-config
=
default
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment