//获取request对象
HttpServletRequest request= (HttpServletRequest) invocation.getInvocationContext().get(ServletActionContext.HTTP_REQUEST);
String path=request.getServletPath();
System.out.println("----------"+path);
if("/login.action".equals(path)||"/login".equals(path)){
return invocation.invoke();
}
如何在拦截器中获取request对象
最新推荐文章于 2024-05-04 23:40:16 发布