Commit 19a1e437 authored by 赵啸非's avatar 赵啸非

添加工作人员最后登录时间

parent a6987451
......@@ -158,6 +158,7 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
log.info("decoratedRequest 000");
Mono<String> modifiedBody = serverRequest.bodyToMono(String.class)
.flatMap(body -> {
log.info("decoratedRequest 0001111");
accessLogPdu.setRequestData(body);
return Mono.just(body);
});
......@@ -173,6 +174,7 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
return bodyInserter.insert(outputMessage, new BodyInserterContext())
.then(Mono.defer(() -> {
// 重新封装请求
Flux<DataBuffer> dataBuffers = Flux.from(outputMessage.getBody());
log.info("decoratedRequest 1");
ServerHttpRequest decoratedRequest = requestDecorate(exchange, headers, outputMessage);
// 记录响应日志
......
......@@ -2,8 +2,9 @@ server:
tomcat:
uri-encoding: utf-8
spring:
codec:
max-in-memory-size: 50MB
webflux:
client:
max-buffer-size: 1024*1024*20
main:
web-application-type: reactive
allow-bean-definition-overriding: true
......
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