Commit 633730f7 authored by zhouwei's avatar zhouwei

add logs

parent 915ddfae
......@@ -99,6 +99,7 @@ public class FailoverGatewayFilterFactory extends AbstractGatewayFilterFactory<F
dataBuffer.read(bytes);
String body = new String(bytes, StandardCharsets.UTF_8);
// 将请求体存储在 ThreadLocal 中
log.info("cache body:{}", body);
REQUEST_BODY_CACHE.set(body);
return body;
} finally {
......
spring.application.name=sl-gateway
spring.profiles.active=qa
#server.servlet.context-path=/api/v1
pagehelper.reasonable=true
pagehelper.support-methods-arguments=true
management.endpoints.web.exposure.include=refresh
#logging.config=classpath:log4j2.xml
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