|
|
@@ -5,7 +5,6 @@ import cn.hutool.extra.servlet.ServletUtil; |
|
|
|
import org.springframework.security.web.authentication.WebAuthenticationDetails; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
|
|
|
/** |
|
|
|
* <p> |
|
|
@@ -19,8 +18,6 @@ public class WebRequestDetails extends WebAuthenticationDetails { |
|
|
|
|
|
|
|
private static final long serialVersionUID = -4466339683132696235L; |
|
|
|
|
|
|
|
private LocalDateTime requestTime; |
|
|
|
|
|
|
|
private final String requestIp; |
|
|
|
|
|
|
|
private final String requestUri; |
|
|
@@ -49,10 +46,6 @@ public class WebRequestDetails extends WebAuthenticationDetails { |
|
|
|
this.userAgent = StrUtil.sub(request.getHeader("user-agent"), 0, 500); |
|
|
|
} |
|
|
|
|
|
|
|
public LocalDateTime getRequestTime() { |
|
|
|
return requestTime; |
|
|
|
} |
|
|
|
|
|
|
|
public String getRequestIp() { |
|
|
|
return requestIp; |
|
|
|
} |
|
|
|