admin 管理员组文章数量: 887021
2023年12月23日发(作者:画图演示快速排序)
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
private Byte sex;
private String phone;
private String address;
private UserMapper userDao;
public UserMapper getUserDao() {
return userDao;
}
public void setUserDao(UserMapper userDao) {
o = userDao;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
= id;
}
public String getName() {
return name;
}
public void setName(String name) {
= name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
rd = password;
}
public Byte getSex() {
return sex;
}
public void setSex(Byte sex) {
= sex;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
= phone;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
s = address;
}
/**
[html]
01.
02.
03.
04.
05.
06.
07.
08.
09.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
package ;
public class User {
private Integer id;
private String name;
private String password;
private Byte sex;
private String phone;
private String address;
public Integer getId() {
return id;
}
public void setId(Integer id) {
= id;
}
public String getName() {
return name;
}
public void setName(String name) {
= name == null ? null : ();
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
rd = password == null ? null : ();
}
public Byte getSex() {
return sex;
}
public void setSex(Byte sex) {
= sex;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
= phone == null ? null : ();
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
s = address == null ? null : ();
}
}
2.4.4、[html]
01.
02.
03.
04.
05.
06.
07.
08.
09.
10.
11.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
id, name, password, sex, phone, address
select
from user_info
where id = #{id,jdbcType=INTEGER}
delete from user_info
where id = #{id,jdbcType=INTEGER}
insert into user_info (id, name, password,
sex, phone, address
)
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{sex,jdbcType=TINYINT}, #{phone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}
)
insert into user_info
id,
name,
password,
sex,
phone,
address,
#{id,jdbcType=INTEGER},
#{name,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR},
#{sex,jdbcType=TINYINT},
#{phone,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR},
update user_info
name = #{name,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
sex = #{sex,jdbcType=TINYINT},
phone = #{phone,jdbcType=VARCHAR},
版权声明:本文标题:struts2+spring+mybatis框架整合详细介绍 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/free/1703304992h446206.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论