标签:java类 ted xtend auto font pre 方法 gen ret
package com.ahd.action; public class HelloAction{ public String execute() throws Exception { return "SUCCESS"; } }
注意事项,必须要有公有的返回值为字符串的execute方法,返回值可以参考Action接口
package com.ahd.action; import com.opensymphony.xwork2.ActionSupport; public class HelloAction extends ActionSupport{ @Override public String execute() throws Exception { // TODO Auto-generated method stub return "SUCCESS"; } }
package com.ahd.action; import com.opensymphony.xwork2.Action; public class HelloAction implements Action{ @Override public String execute() throws Exception { // TODO Auto-generated method stub return Action.SUCCESS; } }
标签:java类 ted xtend auto font pre 方法 gen ret
原文地址:https://www.cnblogs.com/aihuadung/p/9842570.html