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

09-10-16 asdf93945

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

<p>