doform.java
来自「笔者试图用最简单易懂的增删改查功能将Struts、ibatis和FastM的综合」· Java 代码 · 共 36 行
JAVA
36 行
package src.com.ligx.ibatis;
import org.apache.struts.action.ActionForm;
public class DoForm extends ActionForm{
Integer id = null;
String name = null;
Integer sex = null;//0 代表女,1代表男
public Integer getId() {
System.out.println("Be run in DoForm.getId");
return id;
}
public void setId(Integer id) {
System.out.println("Be run in DoForm.setId");
this.id = id;
}
public String getName() {
System.out.println("Be run in DoForm.getName");
return name;
}
public void setName(String name) {
System.out.println("Be run in DoForm.setName");
this.name = name;
}
public Integer getSex() {
System.out.println("Be run in DoForm.getSex");
return sex;
}
public void setSex(Integer sex) {
System.out.println("Be run in DoForm.setSex");
this.sex = sex;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?