- 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-05-16 14:59:12 发布