struts2的token 使用

书呆鱼

关注

阅读 64

2023-02-19


action中:

@Action(interceptorRefs = {@InterceptorRef("defaultStack"), @InterceptorRef("token")},
value = "testdrive",
results={@Result(name = Constants.SUCCESS, location = "/website/testdrive.jsp")}
)




注意:


需要加此返回


@Result(name = Constants.INVALIDTOKEN, location = "/tokenError.jsp")



精彩评论(0)

0 0 举报