需要包 struts2-convention-plugin.jar @Namespace("/xxxx/zzz") public class ConnectionAction { /** Action执行方法* */ @Action(value = "ConnectManage", results = { @Result(name = "success", location = "aaa.jsp"), @Result(name = "faile", location = "bbb.jsp") }, interceptorRefs = { @InterceptorRef(value = "mystack") }) public String execute() { } }