Hi. 那位高手知道,如何在 Struts2 中使用 java 注释,配置拦截器.

[code="java"]
@Namespace("/test")
@Result(name = "success", value = "/templates/home.html", type = FreemarkerResult.class)
public class AnnotationAction implements Action {
public String execute() throws Exception {
return SUCCESS;
}
}
[/code]

看文章 说明
http://zhaosoft.iteye.com/blog/272290