- public class AuthInterceptor extends MethodFilterInterceptor { public String intercept(ActionInvocation invocation) throws Exception {
- ActionContext actionContext = invocation.getInvocationContext();
- HttpServletRequest request= (HttpServletRequest) actionContext.get(StrutsStatics.HTTP_REQUEST);
struts2 拦截器Interceptor中取得request
最新推荐文章于 2023-04-07 11:25:53 发布