获取 IP
This commit is contained in:
@@ -55,7 +55,7 @@ public class ControllerAspect {
|
||||
HttpServletRequest request = ServletUtil.getRequest();
|
||||
String method = request.getMethod();
|
||||
String requestUrl = request.getRequestURL().toString();
|
||||
String requestIp = ServletUtil.getClientIPByHeader(request);
|
||||
String requestIp = ServletUtil.getClientIP(request);
|
||||
long useTime = end - start;
|
||||
ThreadUtil.execAsync(() -> {
|
||||
//请求的参数
|
||||
|
||||
Reference in New Issue
Block a user