strut2中在interceptor中访问actioncontext

代码:

ActionContext actionContext = invocation.getInvocationContext();

千万不要用:

ActionContext actionContext = ActionContext.getContext();
emmmm,突然发现自己无知/xk

猜你喜欢

转载自blog.csdn.net/jdie00/article/details/80467250