Commit 17d59b50 authored by 赵啸非's avatar 赵啸非

修改配置文件

parent 5b439cb8
...@@ -46,6 +46,10 @@ public class ProxyController { ...@@ -46,6 +46,10 @@ public class ProxyController {
} }
String method = params.getOrDefault("method", "post"); String method = params.getOrDefault("method", "post");
params.remove("method");
params.remove("path");
String targetUrl = "http://127.0.0.1:11078/basic_api/" + path; String targetUrl = "http://127.0.0.1:11078/basic_api/" + path;
log.info("proxyPost targetUrl: {}", targetUrl); log.info("proxyPost targetUrl: {}", targetUrl);
if ("post".equalsIgnoreCase(method)) { if ("post".equalsIgnoreCase(method)) {
......
...@@ -63,10 +63,10 @@ Content-Type: application/json ...@@ -63,10 +63,10 @@ Content-Type: application/json
} }
###透传代理接口 ###透传代理接口
POST {{baseUrl}}/proxy/post?path=/entservice/ent/life/cycle/interlist&method=post POST {{baseUrl}}/proxy/post?path=entservice/ent/life/cycle/interlist&method=post
Content-Type: application/json Content-Type: application/json
{} {"page": 1, "size": 10}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment