Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
enterprise-service-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
enterprise-service-platform
Commits
6b19ce7d
Commit
6b19ce7d
authored
Mar 19, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置文件
parent
82a9e8f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
enterprise-service-manager/src/main/java/com/mortals/xhx/busiz/web/ProxyController.java
.../main/java/com/mortals/xhx/busiz/web/ProxyController.java
+4
-2
No files found.
enterprise-service-manager/src/main/java/com/mortals/xhx/busiz/web/ProxyController.java
View file @
6b19ce7d
...
@@ -13,6 +13,7 @@ import org.springframework.web.util.UriBuilder;
...
@@ -13,6 +13,7 @@ import org.springframework.web.util.UriBuilder;
import
org.springframework.web.util.UriUtils
;
import
org.springframework.web.util.UriUtils
;
import
reactor.core.publisher.Mono
;
import
reactor.core.publisher.Mono
;
import
java.net.URI
;
import
java.nio.charset.StandardCharsets
;
import
java.nio.charset.StandardCharsets
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -55,7 +56,7 @@ public class ProxyController {
...
@@ -55,7 +56,7 @@ public class ProxyController {
log
.
info
(
"proxyPost targetUrl: {}"
,
targetUrl
);
log
.
info
(
"proxyPost targetUrl: {}"
,
targetUrl
);
if
(
"post"
.
equalsIgnoreCase
(
method
))
{
if
(
"post"
.
equalsIgnoreCase
(
method
))
{
return
webClient
.
post
()
return
webClient
.
post
()
.
uri
(
uriBuilder
->
{
/*
.uri(uriBuilder -> {
uriBuilder.scheme("http");
uriBuilder.scheme("http");
uriBuilder.path(targetUrl);
uriBuilder.path(targetUrl);
...
@@ -64,7 +65,8 @@ public class ProxyController {
...
@@ -64,7 +65,8 @@ public class ProxyController {
);
);
log.info("proxyPost uriBuilder: {}", uriBuilder.build());
log.info("proxyPost uriBuilder: {}", uriBuilder.build());
return uriBuilder.build();
return uriBuilder.build();
})
})*/
.
uri
(
URI
.
create
(
targetUrl
))
.
headers
(
httpHeaders
->
headers
.
forEach
(
httpHeaders:
:
set
))
.
headers
(
httpHeaders
->
headers
.
forEach
(
httpHeaders:
:
set
))
.
bodyValue
(
body
!=
null
?
body
:
""
)
// 透传 Body
.
bodyValue
(
body
!=
null
?
body
:
""
)
// 透传 Body
.
retrieve
()
.
retrieve
()
...
...
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