├── README.md
├── SpringMvcMybatis.iml
├── out
└── artifacts
│ └── SpringMvcMybatis_war_exploded
│ ├── WEB-INF
│ ├── classes
│ │ ├── config
│ │ │ ├── db.properties
│ │ │ ├── log4j.properties
│ │ │ ├── mybatis
│ │ │ │ └── SqlMapConfig.xml
│ │ │ └── spring
│ │ │ │ ├── applicationContext-dao.xml
│ │ │ │ ├── applicationContext-service.xml
│ │ │ │ ├── applicationContext-transaction.xml
│ │ │ │ └── springmvc.xml
│ │ ├── controller
│ │ │ ├── ItemsController.class
│ │ │ ├── converter
│ │ │ │ └── CustomDateConverter.class
│ │ │ └── propertyeditor
│ │ │ │ └── CustomPropertyEditor.class
│ │ ├── mapper
│ │ │ ├── ItemsMapper.class
│ │ │ ├── ItemsMapper.xml
│ │ │ ├── ItemsMapperCustom.class
│ │ │ ├── ItemsMapperCustom.xml
│ │ │ ├── OrderdetailMapper.class
│ │ │ ├── OrderdetailMapper.xml
│ │ │ ├── OrdersMapper.class
│ │ │ ├── OrdersMapper.xml
│ │ │ ├── UserMapper.class
│ │ │ └── UserMapper.xml
│ │ ├── po
│ │ │ ├── Items.class
│ │ │ ├── ItemsCustom.class
│ │ │ ├── ItemsExample$Criteria.class
│ │ │ ├── ItemsExample$Criterion.class
│ │ │ ├── ItemsExample$GeneratedCriteria.class
│ │ │ ├── ItemsExample.class
│ │ │ ├── ItemsQueryVo.class
│ │ │ ├── Orderdetail.class
│ │ │ ├── OrderdetailExample$Criteria.class
│ │ │ ├── OrderdetailExample$Criterion.class
│ │ │ ├── OrderdetailExample$GeneratedCriteria.class
│ │ │ ├── OrderdetailExample.class
│ │ │ ├── Orders.class
│ │ │ ├── OrdersExample$Criteria.class
│ │ │ ├── OrdersExample$Criterion.class
│ │ │ ├── OrdersExample$GeneratedCriteria.class
│ │ │ ├── OrdersExample.class
│ │ │ ├── User.class
│ │ │ ├── UserExample$Criteria.class
│ │ │ ├── UserExample$Criterion.class
│ │ │ ├── UserExample$GeneratedCriteria.class
│ │ │ └── UserExample.class
│ │ └── service
│ │ │ ├── ItemsService.class
│ │ │ └── impl
│ │ │ └── ItemsServiceImpl.class
│ ├── jsp
│ │ ├── editItem.jsp
│ │ └── itemsList.jsp
│ ├── lib
│ │ ├── aopalliance-1.0.jar
│ │ ├── asm-3.3.1.jar
│ │ ├── aspectjweaver-1.6.11.jar
│ │ ├── cglib-2.2.2.jar
│ │ ├── commons-dbcp-1.2.2.jar
│ │ ├── commons-logging-1.1.1.jar
│ │ ├── commons-pool-1.3.jar
│ │ ├── javassist-3.17.1-GA.jar
│ │ ├── jstl-1.2.jar
│ │ ├── junit-4.9.jar
│ │ ├── log4j-1.2.17.jar
│ │ ├── log4j-api-2.0-rc1.jar
│ │ ├── log4j-core-2.0-rc1.jar
│ │ ├── mybatis-3.2.7.jar
│ │ ├── mybatis-spring-1.2.2.jar
│ │ ├── mysql-connector-java-5.1.7-bin.jar
│ │ ├── slf4j-api-1.7.5.jar
│ │ ├── slf4j-log4j12-1.7.5.jar
│ │ ├── spring-aop-3.2.0.RELEASE.jar
│ │ ├── spring-aspects-3.2.0.RELEASE.jar
│ │ ├── spring-beans-3.2.0.RELEASE.jar
│ │ ├── spring-context-3.2.0.RELEASE.jar
│ │ ├── spring-context-support-3.2.0.RELEASE.jar
│ │ ├── spring-core-3.2.0.RELEASE.jar
│ │ ├── spring-expression-3.2.0.RELEASE.jar
│ │ ├── spring-jdbc-3.2.0.RELEASE.jar
│ │ ├── spring-orm-3.2.0.RELEASE.jar
│ │ ├── spring-test-3.2.0.RELEASE.jar
│ │ ├── spring-tx-3.2.0.RELEASE.jar
│ │ ├── spring-web-3.2.0.RELEASE.jar
│ │ └── spring-webmvc-3.2.0.RELEASE.jar
│ └── web.xml
│ └── index.jsp
├── src
├── config
│ ├── db.properties
│ ├── log4j.properties
│ ├── mybatis
│ │ └── SqlMapConfig.xml
│ └── spring
│ │ ├── applicationContext-dao.xml
│ │ ├── applicationContext-service.xml
│ │ ├── applicationContext-transaction.xml
│ │ └── springmvc.xml
├── controller
│ ├── ItemsController.java
│ ├── converter
│ │ ├── CustomDateConverter.java
│ │ └── StringTrimConverter.java
│ └── propertyeditor
│ │ └── CustomPropertyEditor.java
├── mapper
│ ├── ItemsMapper.java
│ ├── ItemsMapper.xml
│ ├── ItemsMapperCustom.java
│ ├── ItemsMapperCustom.xml
│ ├── OrderdetailMapper.java
│ ├── OrderdetailMapper.xml
│ ├── OrdersMapper.java
│ ├── OrdersMapper.xml
│ ├── UserMapper.java
│ └── UserMapper.xml
├── po
│ ├── Items.java
│ ├── ItemsCustom.java
│ ├── ItemsExample.java
│ ├── ItemsQueryVo.java
│ ├── Orderdetail.java
│ ├── OrderdetailExample.java
│ ├── Orders.java
│ ├── OrdersExample.java
│ ├── User.java
│ └── UserExample.java
├── service
│ ├── ItemsService.java
│ └── impl
│ │ └── ItemsServiceImpl.java
└── sql
│ ├── sql_data.sql
│ └── sql_table.sql
└── web
├── WEB-INF
├── classes
│ ├── config
│ │ ├── db.properties
│ │ ├── log4j.properties
│ │ ├── mybatis
│ │ │ └── SqlMapConfig.xml
│ │ └── spring
│ │ │ ├── applicationContext-dao.xml
│ │ │ ├── applicationContext-service.xml
│ │ │ ├── applicationContext-transaction.xml
│ │ │ └── springmvc.xml
│ ├── controller
│ │ ├── ItemsController.class
│ │ ├── converter
│ │ │ └── CustomDateConverter.class
│ │ └── propertyeditor
│ │ │ └── CustomPropertyEditor.class
│ ├── mapper
│ │ ├── ItemsMapper.class
│ │ ├── ItemsMapper.xml
│ │ ├── ItemsMapperCustom.class
│ │ ├── ItemsMapperCustom.xml
│ │ ├── OrderdetailMapper.class
│ │ ├── OrderdetailMapper.xml
│ │ ├── OrdersMapper.class
│ │ ├── OrdersMapper.xml
│ │ ├── UserMapper.class
│ │ └── UserMapper.xml
│ ├── po
│ │ ├── Items.class
│ │ ├── ItemsCustom.class
│ │ ├── ItemsExample$Criteria.class
│ │ ├── ItemsExample$Criterion.class
│ │ ├── ItemsExample$GeneratedCriteria.class
│ │ ├── ItemsExample.class
│ │ ├── ItemsQueryVo.class
│ │ ├── Orderdetail.class
│ │ ├── OrderdetailExample$Criteria.class
│ │ ├── OrderdetailExample$Criterion.class
│ │ ├── OrderdetailExample$GeneratedCriteria.class
│ │ ├── OrderdetailExample.class
│ │ ├── Orders.class
│ │ ├── OrdersExample$Criteria.class
│ │ ├── OrdersExample$Criterion.class
│ │ ├── OrdersExample$GeneratedCriteria.class
│ │ ├── OrdersExample.class
│ │ ├── User.class
│ │ ├── UserExample$Criteria.class
│ │ ├── UserExample$Criterion.class
│ │ ├── UserExample$GeneratedCriteria.class
│ │ └── UserExample.class
│ └── service
│ │ ├── ItemsService.class
│ │ └── impl
│ │ └── ItemsServiceImpl.class
├── jsp
│ ├── editItem.jsp
│ └── itemsList.jsp
├── lib
│ ├── aopalliance-1.0.jar
│ ├── asm-3.3.1.jar
│ ├── aspectjweaver-1.6.11.jar
│ ├── cglib-2.2.2.jar
│ ├── commons-dbcp-1.2.2.jar
│ ├── commons-logging-1.1.1.jar
│ ├── commons-pool-1.3.jar
│ ├── javassist-3.17.1-GA.jar
│ ├── jstl-1.2.jar
│ ├── junit-4.9.jar
│ ├── log4j-1.2.17.jar
│ ├── log4j-api-2.0-rc1.jar
│ ├── log4j-core-2.0-rc1.jar
│ ├── mybatis-3.2.7.jar
│ ├── mybatis-spring-1.2.2.jar
│ ├── mysql-connector-java-5.1.7-bin.jar
│ ├── slf4j-api-1.7.5.jar
│ ├── slf4j-log4j12-1.7.5.jar
│ ├── spring-aop-3.2.0.RELEASE.jar
│ ├── spring-aspects-3.2.0.RELEASE.jar
│ ├── spring-beans-3.2.0.RELEASE.jar
│ ├── spring-context-3.2.0.RELEASE.jar
│ ├── spring-context-support-3.2.0.RELEASE.jar
│ ├── spring-core-3.2.0.RELEASE.jar
│ ├── spring-expression-3.2.0.RELEASE.jar
│ ├── spring-jdbc-3.2.0.RELEASE.jar
│ ├── spring-orm-3.2.0.RELEASE.jar
│ ├── spring-test-3.2.0.RELEASE.jar
│ ├── spring-tx-3.2.0.RELEASE.jar
│ ├── spring-web-3.2.0.RELEASE.jar
│ └── spring-webmvc-3.2.0.RELEASE.jar
└── web.xml
└── index.jsp
/SpringMvcMybatis.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
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 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/config/db.properties:
--------------------------------------------------------------------------------
1 | jdbc.driver=com.mysql.jdbc.Driver
2 | jdbc.url=jdbc:mysql://localhost:3306/mybatis
3 | jdbc.username=root
4 | jdbc.password=xiaxunwu1996.
5 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/config/log4j.properties:
--------------------------------------------------------------------------------
1 | # Global logging configuration\uff0c\u5efa\u8bae\u5f00\u53d1\u73af\u5883\u4e2d\u8981\u7528debug
2 | log4j.rootLogger=DEBUG, stdout
3 | # Console output...
4 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
5 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
6 | log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
7 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/config/mybatis/SqlMapConfig.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/config/spring/applicationContext-dao.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
44 |
45 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/config/spring/applicationContext-service.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/config/spring/applicationContext-transaction.xml:
--------------------------------------------------------------------------------
1 |
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 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/config/spring/springmvc.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 |
16 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/controller/ItemsController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/controller/ItemsController.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/controller/converter/CustomDateConverter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/controller/converter/CustomDateConverter.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/controller/propertyeditor/CustomPropertyEditor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/controller/propertyeditor/CustomPropertyEditor.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/ItemsMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/ItemsMapper.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/ItemsMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | and ${criterion.condition}
23 |
24 |
25 | and ${criterion.condition} #{criterion.value}
26 |
27 |
28 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
29 |
30 |
31 | and ${criterion.condition}
32 |
33 | #{listItem}
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | and ${criterion.condition}
52 |
53 |
54 | and ${criterion.condition} #{criterion.value}
55 |
56 |
57 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
58 |
59 |
60 | and ${criterion.condition}
61 |
62 | #{listItem}
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | id, name, price, pic, createtime
74 |
75 |
76 | detail
77 |
78 |
94 |
108 |
116 |
117 | delete from items
118 | where id = #{id,jdbcType=INTEGER}
119 |
120 |
121 | delete from items
122 |
123 |
124 |
125 |
126 |
127 | insert into items (id, name, price,
128 | pic, createtime, detail
129 | )
130 | values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{price,jdbcType=REAL},
131 | #{pic,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{detail,jdbcType=LONGVARCHAR}
132 | )
133 |
134 |
135 | insert into items
136 |
137 |
138 | id,
139 |
140 |
141 | name,
142 |
143 |
144 | price,
145 |
146 |
147 | pic,
148 |
149 |
150 | createtime,
151 |
152 |
153 | detail,
154 |
155 |
156 |
157 |
158 | #{id,jdbcType=INTEGER},
159 |
160 |
161 | #{name,jdbcType=VARCHAR},
162 |
163 |
164 | #{price,jdbcType=REAL},
165 |
166 |
167 | #{pic,jdbcType=VARCHAR},
168 |
169 |
170 | #{createtime,jdbcType=TIMESTAMP},
171 |
172 |
173 | #{detail,jdbcType=LONGVARCHAR},
174 |
175 |
176 |
177 |
183 |
184 | update items
185 |
186 |
187 | id = #{record.id,jdbcType=INTEGER},
188 |
189 |
190 | name = #{record.name,jdbcType=VARCHAR},
191 |
192 |
193 | price = #{record.price,jdbcType=REAL},
194 |
195 |
196 | pic = #{record.pic,jdbcType=VARCHAR},
197 |
198 |
199 | createtime = #{record.createtime,jdbcType=TIMESTAMP},
200 |
201 |
202 | detail = #{record.detail,jdbcType=LONGVARCHAR},
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 | update items
211 | set id = #{record.id,jdbcType=INTEGER},
212 | name = #{record.name,jdbcType=VARCHAR},
213 | price = #{record.price,jdbcType=REAL},
214 | pic = #{record.pic,jdbcType=VARCHAR},
215 | createtime = #{record.createtime,jdbcType=TIMESTAMP},
216 | detail = #{record.detail,jdbcType=LONGVARCHAR}
217 |
218 |
219 |
220 |
221 |
222 | update items
223 | set id = #{record.id,jdbcType=INTEGER},
224 | name = #{record.name,jdbcType=VARCHAR},
225 | price = #{record.price,jdbcType=REAL},
226 | pic = #{record.pic,jdbcType=VARCHAR},
227 | createtime = #{record.createtime,jdbcType=TIMESTAMP}
228 |
229 |
230 |
231 |
232 |
233 | update items
234 |
235 |
236 | name = #{name,jdbcType=VARCHAR},
237 |
238 |
239 | price = #{price,jdbcType=REAL},
240 |
241 |
242 | pic = #{pic,jdbcType=VARCHAR},
243 |
244 |
245 | createtime = #{createtime,jdbcType=TIMESTAMP},
246 |
247 |
248 | detail = #{detail,jdbcType=LONGVARCHAR},
249 |
250 |
251 | where id = #{id,jdbcType=INTEGER}
252 |
253 |
254 | update items
255 | set name = #{name,jdbcType=VARCHAR},
256 | price = #{price,jdbcType=REAL},
257 | pic = #{pic,jdbcType=VARCHAR},
258 | createtime = #{createtime,jdbcType=TIMESTAMP},
259 | detail = #{detail,jdbcType=LONGVARCHAR}
260 | where id = #{id,jdbcType=INTEGER}
261 |
262 |
263 | update items
264 | set name = #{name,jdbcType=VARCHAR},
265 | price = #{price,jdbcType=REAL},
266 | pic = #{pic,jdbcType=VARCHAR},
267 | createtime = #{createtime,jdbcType=TIMESTAMP}
268 | where id = #{id,jdbcType=INTEGER}
269 |
270 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/ItemsMapperCustom.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/ItemsMapperCustom.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/ItemsMapperCustom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
11 |
12 |
13 |
14 | and name like '%${itemsCustom.name}%'
15 |
16 |
17 | and id = #{itemsCustom.id}
18 |
19 |
20 |
21 |
22 |
23 |
24 |
27 |
28 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/OrderdetailMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/OrderdetailMapper.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/OrderdetailMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | and ${criterion.condition}
19 |
20 |
21 | and ${criterion.condition} #{criterion.value}
22 |
23 |
24 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
25 |
26 |
27 | and ${criterion.condition}
28 |
29 | #{listItem}
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | and ${criterion.condition}
48 |
49 |
50 | and ${criterion.condition} #{criterion.value}
51 |
52 |
53 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
54 |
55 |
56 | and ${criterion.condition}
57 |
58 | #{listItem}
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | id, orders_id, items_id, items_num
70 |
71 |
85 |
91 |
92 | delete from orderdetail
93 | where id = #{id,jdbcType=INTEGER}
94 |
95 |
96 | delete from orderdetail
97 |
98 |
99 |
100 |
101 |
102 | insert into orderdetail (id, orders_id, items_id,
103 | items_num)
104 | values (#{id,jdbcType=INTEGER}, #{ordersId,jdbcType=INTEGER}, #{itemsId,jdbcType=INTEGER},
105 | #{itemsNum,jdbcType=INTEGER})
106 |
107 |
108 | insert into orderdetail
109 |
110 |
111 | id,
112 |
113 |
114 | orders_id,
115 |
116 |
117 | items_id,
118 |
119 |
120 | items_num,
121 |
122 |
123 |
124 |
125 | #{id,jdbcType=INTEGER},
126 |
127 |
128 | #{ordersId,jdbcType=INTEGER},
129 |
130 |
131 | #{itemsId,jdbcType=INTEGER},
132 |
133 |
134 | #{itemsNum,jdbcType=INTEGER},
135 |
136 |
137 |
138 |
144 |
145 | update orderdetail
146 |
147 |
148 | id = #{record.id,jdbcType=INTEGER},
149 |
150 |
151 | orders_id = #{record.ordersId,jdbcType=INTEGER},
152 |
153 |
154 | items_id = #{record.itemsId,jdbcType=INTEGER},
155 |
156 |
157 | items_num = #{record.itemsNum,jdbcType=INTEGER},
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 | update orderdetail
166 | set id = #{record.id,jdbcType=INTEGER},
167 | orders_id = #{record.ordersId,jdbcType=INTEGER},
168 | items_id = #{record.itemsId,jdbcType=INTEGER},
169 | items_num = #{record.itemsNum,jdbcType=INTEGER}
170 |
171 |
172 |
173 |
174 |
175 | update orderdetail
176 |
177 |
178 | orders_id = #{ordersId,jdbcType=INTEGER},
179 |
180 |
181 | items_id = #{itemsId,jdbcType=INTEGER},
182 |
183 |
184 | items_num = #{itemsNum,jdbcType=INTEGER},
185 |
186 |
187 | where id = #{id,jdbcType=INTEGER}
188 |
189 |
190 | update orderdetail
191 | set orders_id = #{ordersId,jdbcType=INTEGER},
192 | items_id = #{itemsId,jdbcType=INTEGER},
193 | items_num = #{itemsNum,jdbcType=INTEGER}
194 | where id = #{id,jdbcType=INTEGER}
195 |
196 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/OrdersMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/OrdersMapper.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/OrdersMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | and ${criterion.condition}
20 |
21 |
22 | and ${criterion.condition} #{criterion.value}
23 |
24 |
25 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
26 |
27 |
28 | and ${criterion.condition}
29 |
30 | #{listItem}
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | and ${criterion.condition}
49 |
50 |
51 | and ${criterion.condition} #{criterion.value}
52 |
53 |
54 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
55 |
56 |
57 | and ${criterion.condition}
58 |
59 | #{listItem}
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 | id, user_id, number, createtime, note
71 |
72 |
86 |
92 |
93 | delete from orders
94 | where id = #{id,jdbcType=INTEGER}
95 |
96 |
97 | delete from orders
98 |
99 |
100 |
101 |
102 |
103 | insert into orders (id, user_id, number,
104 | createtime, note)
105 | values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{number,jdbcType=VARCHAR},
106 | #{createtime,jdbcType=TIMESTAMP}, #{note,jdbcType=VARCHAR})
107 |
108 |
109 | insert into orders
110 |
111 |
112 | id,
113 |
114 |
115 | user_id,
116 |
117 |
118 | number,
119 |
120 |
121 | createtime,
122 |
123 |
124 | note,
125 |
126 |
127 |
128 |
129 | #{id,jdbcType=INTEGER},
130 |
131 |
132 | #{userId,jdbcType=INTEGER},
133 |
134 |
135 | #{number,jdbcType=VARCHAR},
136 |
137 |
138 | #{createtime,jdbcType=TIMESTAMP},
139 |
140 |
141 | #{note,jdbcType=VARCHAR},
142 |
143 |
144 |
145 |
151 |
152 | update orders
153 |
154 |
155 | id = #{record.id,jdbcType=INTEGER},
156 |
157 |
158 | user_id = #{record.userId,jdbcType=INTEGER},
159 |
160 |
161 | number = #{record.number,jdbcType=VARCHAR},
162 |
163 |
164 | createtime = #{record.createtime,jdbcType=TIMESTAMP},
165 |
166 |
167 | note = #{record.note,jdbcType=VARCHAR},
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 | update orders
176 | set id = #{record.id,jdbcType=INTEGER},
177 | user_id = #{record.userId,jdbcType=INTEGER},
178 | number = #{record.number,jdbcType=VARCHAR},
179 | createtime = #{record.createtime,jdbcType=TIMESTAMP},
180 | note = #{record.note,jdbcType=VARCHAR}
181 |
182 |
183 |
184 |
185 |
186 | update orders
187 |
188 |
189 | user_id = #{userId,jdbcType=INTEGER},
190 |
191 |
192 | number = #{number,jdbcType=VARCHAR},
193 |
194 |
195 | createtime = #{createtime,jdbcType=TIMESTAMP},
196 |
197 |
198 | note = #{note,jdbcType=VARCHAR},
199 |
200 |
201 | where id = #{id,jdbcType=INTEGER}
202 |
203 |
204 | update orders
205 | set user_id = #{userId,jdbcType=INTEGER},
206 | number = #{number,jdbcType=VARCHAR},
207 | createtime = #{createtime,jdbcType=TIMESTAMP},
208 | note = #{note,jdbcType=VARCHAR}
209 | where id = #{id,jdbcType=INTEGER}
210 |
211 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/UserMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/UserMapper.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/mapper/UserMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | and ${criterion.condition}
20 |
21 |
22 | and ${criterion.condition} #{criterion.value}
23 |
24 |
25 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
26 |
27 |
28 | and ${criterion.condition}
29 |
30 | #{listItem}
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | and ${criterion.condition}
49 |
50 |
51 | and ${criterion.condition} #{criterion.value}
52 |
53 |
54 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
55 |
56 |
57 | and ${criterion.condition}
58 |
59 | #{listItem}
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 | id, username, birthday, sex, address
71 |
72 |
86 |
92 |
93 | delete from user
94 | where id = #{id,jdbcType=INTEGER}
95 |
96 |
97 | delete from user
98 |
99 |
100 |
101 |
102 |
103 | insert into user (id, username, birthday,
104 | sex, address)
105 | values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{birthday,jdbcType=DATE},
106 | #{sex,jdbcType=CHAR}, #{address,jdbcType=VARCHAR})
107 |
108 |
109 | insert into user
110 |
111 |
112 | id,
113 |
114 |
115 | username,
116 |
117 |
118 | birthday,
119 |
120 |
121 | sex,
122 |
123 |
124 | address,
125 |
126 |
127 |
128 |
129 | #{id,jdbcType=INTEGER},
130 |
131 |
132 | #{username,jdbcType=VARCHAR},
133 |
134 |
135 | #{birthday,jdbcType=DATE},
136 |
137 |
138 | #{sex,jdbcType=CHAR},
139 |
140 |
141 | #{address,jdbcType=VARCHAR},
142 |
143 |
144 |
145 |
151 |
152 | update user
153 |
154 |
155 | id = #{record.id,jdbcType=INTEGER},
156 |
157 |
158 | username = #{record.username,jdbcType=VARCHAR},
159 |
160 |
161 | birthday = #{record.birthday,jdbcType=DATE},
162 |
163 |
164 | sex = #{record.sex,jdbcType=CHAR},
165 |
166 |
167 | address = #{record.address,jdbcType=VARCHAR},
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 | update user
176 | set id = #{record.id,jdbcType=INTEGER},
177 | username = #{record.username,jdbcType=VARCHAR},
178 | birthday = #{record.birthday,jdbcType=DATE},
179 | sex = #{record.sex,jdbcType=CHAR},
180 | address = #{record.address,jdbcType=VARCHAR}
181 |
182 |
183 |
184 |
185 |
186 | update user
187 |
188 |
189 | username = #{username,jdbcType=VARCHAR},
190 |
191 |
192 | birthday = #{birthday,jdbcType=DATE},
193 |
194 |
195 | sex = #{sex,jdbcType=CHAR},
196 |
197 |
198 | address = #{address,jdbcType=VARCHAR},
199 |
200 |
201 | where id = #{id,jdbcType=INTEGER}
202 |
203 |
204 | update user
205 | set username = #{username,jdbcType=VARCHAR},
206 | birthday = #{birthday,jdbcType=DATE},
207 | sex = #{sex,jdbcType=CHAR},
208 | address = #{address,jdbcType=VARCHAR}
209 | where id = #{id,jdbcType=INTEGER}
210 |
211 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/Items.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/Items.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/ItemsCustom.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/ItemsCustom.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/ItemsExample$Criteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/ItemsExample$Criteria.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/ItemsExample$Criterion.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/ItemsExample$Criterion.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/ItemsExample$GeneratedCriteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/ItemsExample$GeneratedCriteria.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/ItemsExample.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/ItemsExample.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/ItemsQueryVo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/ItemsQueryVo.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/Orderdetail.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/Orderdetail.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrderdetailExample$Criteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrderdetailExample$Criteria.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrderdetailExample$Criterion.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrderdetailExample$Criterion.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrderdetailExample$GeneratedCriteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrderdetailExample$GeneratedCriteria.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrderdetailExample.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrderdetailExample.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/Orders.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/Orders.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrdersExample$Criteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrdersExample$Criteria.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrdersExample$Criterion.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrdersExample$Criterion.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrdersExample$GeneratedCriteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrdersExample$GeneratedCriteria.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrdersExample.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/OrdersExample.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/User.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/User.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/UserExample$Criteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/UserExample$Criteria.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/UserExample$Criterion.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/UserExample$Criterion.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/UserExample$GeneratedCriteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/UserExample$GeneratedCriteria.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/UserExample.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/po/UserExample.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/service/ItemsService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/service/ItemsService.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/service/impl/ItemsServiceImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/classes/service/impl/ItemsServiceImpl.class
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/jsp/editItem.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
4 | <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
5 |
6 |
7 |
8 |
9 | 修改商品信息
10 |
11 |
12 |
13 |
42 |
43 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/jsp/itemsList.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
4 | <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
5 |
6 |
7 |
8 |
9 | 查询商品列表
10 |
11 |
12 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/aopalliance-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/aopalliance-1.0.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/asm-3.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/asm-3.3.1.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/aspectjweaver-1.6.11.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/aspectjweaver-1.6.11.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/cglib-2.2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/cglib-2.2.2.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/commons-dbcp-1.2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/commons-dbcp-1.2.2.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/commons-logging-1.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/commons-logging-1.1.1.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/commons-pool-1.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/commons-pool-1.3.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/javassist-3.17.1-GA.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/javassist-3.17.1-GA.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/jstl-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/jstl-1.2.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/junit-4.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/junit-4.9.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/log4j-1.2.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/log4j-1.2.17.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/log4j-api-2.0-rc1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/log4j-api-2.0-rc1.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/log4j-core-2.0-rc1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/log4j-core-2.0-rc1.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/mybatis-3.2.7.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/mybatis-3.2.7.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/mybatis-spring-1.2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/mybatis-spring-1.2.2.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/slf4j-api-1.7.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/slf4j-api-1.7.5.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/slf4j-log4j12-1.7.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/slf4j-log4j12-1.7.5.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-aop-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-aop-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-aspects-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-aspects-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-beans-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-beans-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-context-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-context-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-context-support-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-context-support-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-core-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-core-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-expression-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-expression-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-jdbc-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-jdbc-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-orm-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-orm-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-test-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-test-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-tx-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-tx-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-web-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-web-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-webmvc-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/lib/spring-webmvc-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | springmvc
8 | org.springframework.web.servlet.DispatcherServlet
9 |
10 |
11 | contextConfigLocation
12 |
14 | classpath:config/spring/springmvc.xml
15 |
16 |
17 |
18 |
19 |
20 |
21 | contextConfigLocation
22 | /WEB-INF/classes/config/spring/applicationContext-*.xml
23 |
24 |
25 | org.springframework.web.context.ContextLoaderListener
26 |
27 |
28 |
29 | springmvc
30 |
33 |
34 | *.action
35 |
36 |
--------------------------------------------------------------------------------
/out/artifacts/SpringMvcMybatis_war_exploded/index.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: codingBoy
4 | Date: 16/11/15
5 | Time: 下午2:42
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 |
10 |
11 | $Title$
12 |
13 |
14 | $END$
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/config/db.properties:
--------------------------------------------------------------------------------
1 | jdbc.driver=com.mysql.jdbc.Driver
2 | jdbc.url=jdbc:mysql://localhost:3306/mybatis
3 | jdbc.username=root
4 | jdbc.password=xiaxunwu1996.
5 |
--------------------------------------------------------------------------------
/src/config/log4j.properties:
--------------------------------------------------------------------------------
1 | # Global logging configuration\uff0c\u5efa\u8bae\u5f00\u53d1\u73af\u5883\u4e2d\u8981\u7528debug
2 | log4j.rootLogger=DEBUG, stdout
3 | # Console output...
4 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
5 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
6 | log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
7 |
--------------------------------------------------------------------------------
/src/config/mybatis/SqlMapConfig.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/config/spring/applicationContext-dao.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
44 |
45 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/src/config/spring/applicationContext-service.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/config/spring/applicationContext-transaction.xml:
--------------------------------------------------------------------------------
1 |
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 |
--------------------------------------------------------------------------------
/src/config/spring/springmvc.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 |
16 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
--------------------------------------------------------------------------------
/src/controller/ItemsController.java:
--------------------------------------------------------------------------------
1 | package controller;
2 |
3 | import com.sun.org.apache.xpath.internal.operations.Mod;
4 | import org.springframework.beans.factory.annotation.Autowired;
5 | import org.springframework.beans.propertyeditors.CustomDateEditor;
6 | import org.springframework.stereotype.Controller;
7 | import org.springframework.ui.Model;
8 | import org.springframework.web.bind.WebDataBinder;
9 | import org.springframework.web.bind.annotation.*;
10 | import org.springframework.web.servlet.ModelAndView;
11 | import po.Items;
12 | import po.ItemsCustom;
13 | import service.ItemsService;
14 |
15 | import javax.annotation.Resource;
16 | import javax.jws.WebParam;
17 | import javax.servlet.http.HttpServletRequest;
18 | import javax.servlet.http.HttpServletResponse;
19 | import java.text.SimpleDateFormat;
20 | import java.util.Date;
21 | import java.util.List;
22 |
23 | /**
24 | * Created by codingBoy on 16/11/15.
25 | */
26 | @Controller
27 | //定义url的根路径,访问时根路径+方法名的url
28 | @RequestMapping("/items")
29 | public class ItemsController {
30 |
31 | //注入service
32 | @Autowired
33 | private ItemsService itemsService;
34 |
35 | @RequestMapping("/queryItems")
36 | public ModelAndView queryItems() throws Exception {
37 | //调用servie来查询商品列表
38 | List itemsList=itemsService.findItemsList(null);
39 |
40 | ModelAndView modelAndView=new ModelAndView();
41 | modelAndView.addObject("itemsList",itemsList);
42 | //指定逻辑视图名itemsList.jsp
43 | modelAndView.setViewName("itemsList");
44 |
45 | return modelAndView;
46 | }
47 |
48 | //商品修改页面提示
49 | //使用method = RequestMethod.GET来限制使用get方法
50 | // @RequestMapping(value = "/editItems",method = RequestMethod.GET)
51 | // public ModelAndView editItems() throws Exception
52 | // {
53 | // ModelAndView modelAndView=new ModelAndView();
54 | //
55 | // //调用service查询商品的信息
56 | // ItemsCustom itemsCustom=itemsService.findItemsById(1);
57 | // //将模型数据传到jsp
58 | // modelAndView.addObject("item",itemsCustom);
59 | // //指定逻辑视图名
60 | // modelAndView.setViewName("editItem");
61 | //
62 | // return modelAndView;
63 | // }
64 |
65 | //方法返回字符串,字符串就是逻辑视图名,Model作用时将数据填充到request域,在页面显示
66 | @RequestMapping(value = "/editItems",method = RequestMethod.GET)
67 | public String editItems(Model model, Integer id) throws Exception
68 | {
69 |
70 | //将id传到页面
71 | model.addAttribute("id",id);
72 |
73 | //调用service查询商品的信息
74 | ItemsCustom itemsCustom=itemsService.findItemsById(id);
75 |
76 | model.addAttribute("itemsCustom",itemsCustom);
77 |
78 | return "editItem";
79 | }
80 |
81 |
82 | // @RequestMapping(value = "/editItems",method = RequestMethod.GET)
83 | // public void editItems(HttpServletRequest request, HttpServletResponse response,
84 | //// @RequestParam(value = "item_id",required = false,defaultValue = "1")
85 | // Integer id) throws Exception
86 | // {
87 | //
88 | // //调用service查询商品的信息
89 | // ItemsCustom itemsCustom=itemsService.findItemsById(id);
90 | //
91 | // request.setAttribute("item",itemsCustom);
92 | //
93 | // //zhuyi如果使用request转向页面,这里需要指定页面的完整路径
94 | // request.getRequestDispatcher("/WEB-INF/jsp/editItem.jsp").forward(request,response);
95 | // }
96 |
97 | //商品提交页面
98 | //itemsQueryVo是包装类型的pojo
99 | @RequestMapping("/editItemSubmit")
100 | public String editItemSubmit(Model model,Integer id,@ModelAttribute(value = "itemsCustom") ItemsCustom itemsCustom) throws Exception
101 | {
102 | //进行数据回显
103 | model.addAttribute("id",id);
104 | // model.addAttribute("item",itemsCustom);
105 |
106 |
107 | itemsService.updateItems(id,itemsCustom);
108 | //请求转发
109 | // return "forward:queryItems.action";
110 |
111 |
112 | return "editItem";
113 | //重定向
114 | // return "redirect:queryItems.action";
115 | }
116 | //
117 | // //自定义属性编辑器
118 | // @InitBinder
119 | // public void initBinder(WebDataBinder binder) throws Exception{
120 | //
121 | // //Date.class必须是与controller方法形参pojo属性一致的date类型,这里是java.util.Date
122 | // binder.registerCustomEditor(Date.class,new CustomDateEditor(new SimpleDateFormat("yyyy-MM-dd HH-mm-ss"),true));
123 | //
124 | // }
125 | }
126 |
--------------------------------------------------------------------------------
/src/controller/converter/CustomDateConverter.java:
--------------------------------------------------------------------------------
1 | package controller.converter;
2 |
3 |
4 |
5 | import org.springframework.core.convert.converter.Converter;
6 |
7 | import java.text.SimpleDateFormat;
8 | import java.util.Date;
9 |
10 | /**
11 | * Created by codingBoy on 16/11/16.
12 | */
13 | public class CustomDateConverter implements Converter {
14 |
15 | @Override
16 | public Date convert(String source) {
17 |
18 | try{
19 | return new SimpleDateFormat("yyyy-MM-dd HH-mm-ss").parse(source);
20 | }catch (Exception e)
21 | {
22 | e.printStackTrace();
23 | }
24 |
25 | return null;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/controller/converter/StringTrimConverter.java:
--------------------------------------------------------------------------------
1 | package controller.converter;
2 |
3 |
4 |
5 | import org.springframework.core.convert.converter.Converter;
6 |
7 | import java.text.SimpleDateFormat;
8 | import java.util.Date;
9 |
10 | /**
11 | * Created by codingBoy on 16/11/16.
12 | */
13 | public class StringTrimConverter implements Converter {
14 |
15 | @Override
16 | public String convert(String source) {
17 |
18 | try{
19 | //去掉字符串两边的空格,如果去除后为空则返回null
20 | if (source!=null)
21 | {
22 | source=source.trim();
23 | if (source.equals(""))
24 | return null;
25 | }
26 | }catch (Exception e)
27 | {
28 | e.printStackTrace();
29 | }
30 |
31 | return source;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/controller/propertyeditor/CustomPropertyEditor.java:
--------------------------------------------------------------------------------
1 | package controller.propertyeditor;
2 |
3 | import org.springframework.beans.PropertyEditorRegistrar;
4 | import org.springframework.beans.PropertyEditorRegistry;
5 | import org.springframework.beans.propertyeditors.CustomDateEditor;
6 |
7 | import java.text.SimpleDateFormat;
8 | import java.util.Date;
9 |
10 | /**
11 | * Created by codingBoy on 16/11/16.
12 | */
13 | public class CustomPropertyEditor implements PropertyEditorRegistrar
14 | {
15 |
16 | @Override
17 | public void registerCustomEditors(PropertyEditorRegistry binder) {
18 | binder.registerCustomEditor(Date.class,new CustomDateEditor(new SimpleDateFormat("yyyy-MM-dd HH-mm-ss"),true));
19 |
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/mapper/ItemsMapper.java:
--------------------------------------------------------------------------------
1 | package mapper;
2 |
3 | import java.util.List;
4 | import org.apache.ibatis.annotations.Param;
5 | import po.Items;
6 | import po.ItemsExample;
7 |
8 | public interface ItemsMapper {
9 | int countByExample(ItemsExample example);
10 |
11 | int deleteByExample(ItemsExample example);
12 |
13 | int deleteByPrimaryKey(Integer id);
14 |
15 | int insert(Items record);
16 |
17 | int insertSelective(Items record);
18 |
19 | List selectByExampleWithBLOBs(ItemsExample example);
20 |
21 | List selectByExample(ItemsExample example);
22 |
23 | Items selectByPrimaryKey(Integer id);
24 |
25 | int updateByExampleSelective(@Param("record") Items record, @Param("example") ItemsExample example);
26 |
27 | int updateByExampleWithBLOBs(@Param("record") Items record, @Param("example") ItemsExample example);
28 |
29 | int updateByExample(@Param("record") Items record, @Param("example") ItemsExample example);
30 |
31 | int updateByPrimaryKeySelective(Items record);
32 |
33 | int updateByPrimaryKeyWithBLOBs(Items record);
34 |
35 | int updateByPrimaryKey(Items record);
36 | }
--------------------------------------------------------------------------------
/src/mapper/ItemsMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | and ${criterion.condition}
23 |
24 |
25 | and ${criterion.condition} #{criterion.value}
26 |
27 |
28 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
29 |
30 |
31 | and ${criterion.condition}
32 |
33 | #{listItem}
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | and ${criterion.condition}
52 |
53 |
54 | and ${criterion.condition} #{criterion.value}
55 |
56 |
57 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
58 |
59 |
60 | and ${criterion.condition}
61 |
62 | #{listItem}
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | id, name, price, pic, createtime
74 |
75 |
76 | detail
77 |
78 |
94 |
108 |
116 |
117 | delete from items
118 | where id = #{id,jdbcType=INTEGER}
119 |
120 |
121 | delete from items
122 |
123 |
124 |
125 |
126 |
127 | insert into items (id, name, price,
128 | pic, createtime, detail
129 | )
130 | values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{price,jdbcType=REAL},
131 | #{pic,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{detail,jdbcType=LONGVARCHAR}
132 | )
133 |
134 |
135 | insert into items
136 |
137 |
138 | id,
139 |
140 |
141 | name,
142 |
143 |
144 | price,
145 |
146 |
147 | pic,
148 |
149 |
150 | createtime,
151 |
152 |
153 | detail,
154 |
155 |
156 |
157 |
158 | #{id,jdbcType=INTEGER},
159 |
160 |
161 | #{name,jdbcType=VARCHAR},
162 |
163 |
164 | #{price,jdbcType=REAL},
165 |
166 |
167 | #{pic,jdbcType=VARCHAR},
168 |
169 |
170 | #{createtime,jdbcType=TIMESTAMP},
171 |
172 |
173 | #{detail,jdbcType=LONGVARCHAR},
174 |
175 |
176 |
177 |
183 |
184 | update items
185 |
186 |
187 | id = #{record.id,jdbcType=INTEGER},
188 |
189 |
190 | name = #{record.name,jdbcType=VARCHAR},
191 |
192 |
193 | price = #{record.price,jdbcType=REAL},
194 |
195 |
196 | pic = #{record.pic,jdbcType=VARCHAR},
197 |
198 |
199 | createtime = #{record.createtime,jdbcType=TIMESTAMP},
200 |
201 |
202 | detail = #{record.detail,jdbcType=LONGVARCHAR},
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 | update items
211 | set id = #{record.id,jdbcType=INTEGER},
212 | name = #{record.name,jdbcType=VARCHAR},
213 | price = #{record.price,jdbcType=REAL},
214 | pic = #{record.pic,jdbcType=VARCHAR},
215 | createtime = #{record.createtime,jdbcType=TIMESTAMP},
216 | detail = #{record.detail,jdbcType=LONGVARCHAR}
217 |
218 |
219 |
220 |
221 |
222 | update items
223 | set id = #{record.id,jdbcType=INTEGER},
224 | name = #{record.name,jdbcType=VARCHAR},
225 | price = #{record.price,jdbcType=REAL},
226 | pic = #{record.pic,jdbcType=VARCHAR},
227 | createtime = #{record.createtime,jdbcType=TIMESTAMP}
228 |
229 |
230 |
231 |
232 |
233 | update items
234 |
235 |
236 | name = #{name,jdbcType=VARCHAR},
237 |
238 |
239 | price = #{price,jdbcType=REAL},
240 |
241 |
242 | pic = #{pic,jdbcType=VARCHAR},
243 |
244 |
245 | createtime = #{createtime,jdbcType=TIMESTAMP},
246 |
247 |
248 | detail = #{detail,jdbcType=LONGVARCHAR},
249 |
250 |
251 | where id = #{id,jdbcType=INTEGER}
252 |
253 |
254 | update items
255 | set name = #{name,jdbcType=VARCHAR},
256 | price = #{price,jdbcType=REAL},
257 | pic = #{pic,jdbcType=VARCHAR},
258 | createtime = #{createtime,jdbcType=TIMESTAMP},
259 | detail = #{detail,jdbcType=LONGVARCHAR}
260 | where id = #{id,jdbcType=INTEGER}
261 |
262 |
263 | update items
264 | set name = #{name,jdbcType=VARCHAR},
265 | price = #{price,jdbcType=REAL},
266 | pic = #{pic,jdbcType=VARCHAR},
267 | createtime = #{createtime,jdbcType=TIMESTAMP}
268 | where id = #{id,jdbcType=INTEGER}
269 |
270 |
--------------------------------------------------------------------------------
/src/mapper/ItemsMapperCustom.java:
--------------------------------------------------------------------------------
1 | package mapper;
2 |
3 | import po.ItemsCustom;
4 | import po.ItemsQueryVo;
5 |
6 | import java.util.List;
7 |
8 |
9 | /**
10 | *
11 | *
12 | * Title: ItemsMapperCustom
13 | *
14 | *
15 | * Description:商品自定义mapper
16 | *
17 | *
18 | * Company: www.itcast.com
19 | *
20 | *
21 | * @author 传智.燕青
22 | * @date 2015-3-20下午3:00:53
23 | * @version 1.0
24 | */
25 | public interface ItemsMapperCustom {
26 | // 商品查询列表
27 | List findItemsList(ItemsQueryVo itemsQueryVo)
28 | throws Exception;
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/src/mapper/ItemsMapperCustom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
11 |
12 |
13 |
14 | and name like '%${itemsCustom.name}%'
15 |
16 |
17 | and id = #{itemsCustom.id}
18 |
19 |
20 |
21 |
22 |
23 |
24 |
27 |
28 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/src/mapper/OrderdetailMapper.java:
--------------------------------------------------------------------------------
1 | package mapper;
2 |
3 | import java.util.List;
4 | import org.apache.ibatis.annotations.Param;
5 | import po.Orderdetail;
6 | import po.OrderdetailExample;
7 |
8 | public interface OrderdetailMapper {
9 | int countByExample(OrderdetailExample example);
10 |
11 | int deleteByExample(OrderdetailExample example);
12 |
13 | int deleteByPrimaryKey(Integer id);
14 |
15 | int insert(Orderdetail record);
16 |
17 | int insertSelective(Orderdetail record);
18 |
19 | List selectByExample(OrderdetailExample example);
20 |
21 | Orderdetail selectByPrimaryKey(Integer id);
22 |
23 | int updateByExampleSelective(@Param("record") Orderdetail record, @Param("example") OrderdetailExample example);
24 |
25 | int updateByExample(@Param("record") Orderdetail record, @Param("example") OrderdetailExample example);
26 |
27 | int updateByPrimaryKeySelective(Orderdetail record);
28 |
29 | int updateByPrimaryKey(Orderdetail record);
30 | }
--------------------------------------------------------------------------------
/src/mapper/OrderdetailMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | and ${criterion.condition}
19 |
20 |
21 | and ${criterion.condition} #{criterion.value}
22 |
23 |
24 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
25 |
26 |
27 | and ${criterion.condition}
28 |
29 | #{listItem}
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | and ${criterion.condition}
48 |
49 |
50 | and ${criterion.condition} #{criterion.value}
51 |
52 |
53 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
54 |
55 |
56 | and ${criterion.condition}
57 |
58 | #{listItem}
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | id, orders_id, items_id, items_num
70 |
71 |
85 |
91 |
92 | delete from orderdetail
93 | where id = #{id,jdbcType=INTEGER}
94 |
95 |
96 | delete from orderdetail
97 |
98 |
99 |
100 |
101 |
102 | insert into orderdetail (id, orders_id, items_id,
103 | items_num)
104 | values (#{id,jdbcType=INTEGER}, #{ordersId,jdbcType=INTEGER}, #{itemsId,jdbcType=INTEGER},
105 | #{itemsNum,jdbcType=INTEGER})
106 |
107 |
108 | insert into orderdetail
109 |
110 |
111 | id,
112 |
113 |
114 | orders_id,
115 |
116 |
117 | items_id,
118 |
119 |
120 | items_num,
121 |
122 |
123 |
124 |
125 | #{id,jdbcType=INTEGER},
126 |
127 |
128 | #{ordersId,jdbcType=INTEGER},
129 |
130 |
131 | #{itemsId,jdbcType=INTEGER},
132 |
133 |
134 | #{itemsNum,jdbcType=INTEGER},
135 |
136 |
137 |
138 |
144 |
145 | update orderdetail
146 |
147 |
148 | id = #{record.id,jdbcType=INTEGER},
149 |
150 |
151 | orders_id = #{record.ordersId,jdbcType=INTEGER},
152 |
153 |
154 | items_id = #{record.itemsId,jdbcType=INTEGER},
155 |
156 |
157 | items_num = #{record.itemsNum,jdbcType=INTEGER},
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 | update orderdetail
166 | set id = #{record.id,jdbcType=INTEGER},
167 | orders_id = #{record.ordersId,jdbcType=INTEGER},
168 | items_id = #{record.itemsId,jdbcType=INTEGER},
169 | items_num = #{record.itemsNum,jdbcType=INTEGER}
170 |
171 |
172 |
173 |
174 |
175 | update orderdetail
176 |
177 |
178 | orders_id = #{ordersId,jdbcType=INTEGER},
179 |
180 |
181 | items_id = #{itemsId,jdbcType=INTEGER},
182 |
183 |
184 | items_num = #{itemsNum,jdbcType=INTEGER},
185 |
186 |
187 | where id = #{id,jdbcType=INTEGER}
188 |
189 |
190 | update orderdetail
191 | set orders_id = #{ordersId,jdbcType=INTEGER},
192 | items_id = #{itemsId,jdbcType=INTEGER},
193 | items_num = #{itemsNum,jdbcType=INTEGER}
194 | where id = #{id,jdbcType=INTEGER}
195 |
196 |
--------------------------------------------------------------------------------
/src/mapper/OrdersMapper.java:
--------------------------------------------------------------------------------
1 | package mapper;
2 |
3 | import java.util.List;
4 | import org.apache.ibatis.annotations.Param;
5 | import po.Orders;
6 | import po.OrdersExample;
7 |
8 | public interface OrdersMapper {
9 | int countByExample(OrdersExample example);
10 |
11 | int deleteByExample(OrdersExample example);
12 |
13 | int deleteByPrimaryKey(Integer id);
14 |
15 | int insert(Orders record);
16 |
17 | int insertSelective(Orders record);
18 |
19 | List selectByExample(OrdersExample example);
20 |
21 | Orders selectByPrimaryKey(Integer id);
22 |
23 | int updateByExampleSelective(@Param("record") Orders record, @Param("example") OrdersExample example);
24 |
25 | int updateByExample(@Param("record") Orders record, @Param("example") OrdersExample example);
26 |
27 | int updateByPrimaryKeySelective(Orders record);
28 |
29 | int updateByPrimaryKey(Orders record);
30 | }
--------------------------------------------------------------------------------
/src/mapper/OrdersMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | and ${criterion.condition}
20 |
21 |
22 | and ${criterion.condition} #{criterion.value}
23 |
24 |
25 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
26 |
27 |
28 | and ${criterion.condition}
29 |
30 | #{listItem}
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | and ${criterion.condition}
49 |
50 |
51 | and ${criterion.condition} #{criterion.value}
52 |
53 |
54 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
55 |
56 |
57 | and ${criterion.condition}
58 |
59 | #{listItem}
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 | id, user_id, number, createtime, note
71 |
72 |
86 |
92 |
93 | delete from orders
94 | where id = #{id,jdbcType=INTEGER}
95 |
96 |
97 | delete from orders
98 |
99 |
100 |
101 |
102 |
103 | insert into orders (id, user_id, number,
104 | createtime, note)
105 | values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{number,jdbcType=VARCHAR},
106 | #{createtime,jdbcType=TIMESTAMP}, #{note,jdbcType=VARCHAR})
107 |
108 |
109 | insert into orders
110 |
111 |
112 | id,
113 |
114 |
115 | user_id,
116 |
117 |
118 | number,
119 |
120 |
121 | createtime,
122 |
123 |
124 | note,
125 |
126 |
127 |
128 |
129 | #{id,jdbcType=INTEGER},
130 |
131 |
132 | #{userId,jdbcType=INTEGER},
133 |
134 |
135 | #{number,jdbcType=VARCHAR},
136 |
137 |
138 | #{createtime,jdbcType=TIMESTAMP},
139 |
140 |
141 | #{note,jdbcType=VARCHAR},
142 |
143 |
144 |
145 |
151 |
152 | update orders
153 |
154 |
155 | id = #{record.id,jdbcType=INTEGER},
156 |
157 |
158 | user_id = #{record.userId,jdbcType=INTEGER},
159 |
160 |
161 | number = #{record.number,jdbcType=VARCHAR},
162 |
163 |
164 | createtime = #{record.createtime,jdbcType=TIMESTAMP},
165 |
166 |
167 | note = #{record.note,jdbcType=VARCHAR},
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 | update orders
176 | set id = #{record.id,jdbcType=INTEGER},
177 | user_id = #{record.userId,jdbcType=INTEGER},
178 | number = #{record.number,jdbcType=VARCHAR},
179 | createtime = #{record.createtime,jdbcType=TIMESTAMP},
180 | note = #{record.note,jdbcType=VARCHAR}
181 |
182 |
183 |
184 |
185 |
186 | update orders
187 |
188 |
189 | user_id = #{userId,jdbcType=INTEGER},
190 |
191 |
192 | number = #{number,jdbcType=VARCHAR},
193 |
194 |
195 | createtime = #{createtime,jdbcType=TIMESTAMP},
196 |
197 |
198 | note = #{note,jdbcType=VARCHAR},
199 |
200 |
201 | where id = #{id,jdbcType=INTEGER}
202 |
203 |
204 | update orders
205 | set user_id = #{userId,jdbcType=INTEGER},
206 | number = #{number,jdbcType=VARCHAR},
207 | createtime = #{createtime,jdbcType=TIMESTAMP},
208 | note = #{note,jdbcType=VARCHAR}
209 | where id = #{id,jdbcType=INTEGER}
210 |
211 |
--------------------------------------------------------------------------------
/src/mapper/UserMapper.java:
--------------------------------------------------------------------------------
1 | package mapper;
2 |
3 | import java.util.List;
4 | import org.apache.ibatis.annotations.Param;
5 | import po.User;
6 | import po.UserExample;
7 |
8 | public interface UserMapper {
9 | int countByExample(UserExample example);
10 |
11 | int deleteByExample(UserExample example);
12 |
13 | int deleteByPrimaryKey(Integer id);
14 |
15 | int insert(User record);
16 |
17 | int insertSelective(User record);
18 |
19 | List selectByExample(UserExample example);
20 |
21 | User selectByPrimaryKey(Integer id);
22 |
23 | int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);
24 |
25 | int updateByExample(@Param("record") User record, @Param("example") UserExample example);
26 |
27 | int updateByPrimaryKeySelective(User record);
28 |
29 | int updateByPrimaryKey(User record);
30 | }
--------------------------------------------------------------------------------
/src/mapper/UserMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | and ${criterion.condition}
20 |
21 |
22 | and ${criterion.condition} #{criterion.value}
23 |
24 |
25 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
26 |
27 |
28 | and ${criterion.condition}
29 |
30 | #{listItem}
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | and ${criterion.condition}
49 |
50 |
51 | and ${criterion.condition} #{criterion.value}
52 |
53 |
54 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
55 |
56 |
57 | and ${criterion.condition}
58 |
59 | #{listItem}
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 | id, username, birthday, sex, address
71 |
72 |
86 |
92 |
93 | delete from user
94 | where id = #{id,jdbcType=INTEGER}
95 |
96 |
97 | delete from user
98 |
99 |
100 |
101 |
102 |
103 | insert into user (id, username, birthday,
104 | sex, address)
105 | values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{birthday,jdbcType=DATE},
106 | #{sex,jdbcType=CHAR}, #{address,jdbcType=VARCHAR})
107 |
108 |
109 | insert into user
110 |
111 |
112 | id,
113 |
114 |
115 | username,
116 |
117 |
118 | birthday,
119 |
120 |
121 | sex,
122 |
123 |
124 | address,
125 |
126 |
127 |
128 |
129 | #{id,jdbcType=INTEGER},
130 |
131 |
132 | #{username,jdbcType=VARCHAR},
133 |
134 |
135 | #{birthday,jdbcType=DATE},
136 |
137 |
138 | #{sex,jdbcType=CHAR},
139 |
140 |
141 | #{address,jdbcType=VARCHAR},
142 |
143 |
144 |
145 |
151 |
152 | update user
153 |
154 |
155 | id = #{record.id,jdbcType=INTEGER},
156 |
157 |
158 | username = #{record.username,jdbcType=VARCHAR},
159 |
160 |
161 | birthday = #{record.birthday,jdbcType=DATE},
162 |
163 |
164 | sex = #{record.sex,jdbcType=CHAR},
165 |
166 |
167 | address = #{record.address,jdbcType=VARCHAR},
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 | update user
176 | set id = #{record.id,jdbcType=INTEGER},
177 | username = #{record.username,jdbcType=VARCHAR},
178 | birthday = #{record.birthday,jdbcType=DATE},
179 | sex = #{record.sex,jdbcType=CHAR},
180 | address = #{record.address,jdbcType=VARCHAR}
181 |
182 |
183 |
184 |
185 |
186 | update user
187 |
188 |
189 | username = #{username,jdbcType=VARCHAR},
190 |
191 |
192 | birthday = #{birthday,jdbcType=DATE},
193 |
194 |
195 | sex = #{sex,jdbcType=CHAR},
196 |
197 |
198 | address = #{address,jdbcType=VARCHAR},
199 |
200 |
201 | where id = #{id,jdbcType=INTEGER}
202 |
203 |
204 | update user
205 | set username = #{username,jdbcType=VARCHAR},
206 | birthday = #{birthday,jdbcType=DATE},
207 | sex = #{sex,jdbcType=CHAR},
208 | address = #{address,jdbcType=VARCHAR}
209 | where id = #{id,jdbcType=INTEGER}
210 |
211 |
--------------------------------------------------------------------------------
/src/po/Items.java:
--------------------------------------------------------------------------------
1 | package po;
2 |
3 | import java.util.Date;
4 |
5 | public class Items {
6 | private Integer id;
7 |
8 | private String name;
9 |
10 | private Float price;
11 |
12 | private String pic;
13 |
14 | private Date createtime;
15 |
16 | private String detail;
17 |
18 | public Integer getId() {
19 | return id;
20 | }
21 |
22 | public void setId(Integer id) {
23 | this.id = id;
24 | }
25 |
26 | public String getName() {
27 | return name;
28 | }
29 |
30 | public void setName(String name) {
31 | this.name = name == null ? null : name.trim();
32 | }
33 |
34 | public Float getPrice() {
35 | return price;
36 | }
37 |
38 | public void setPrice(Float price) {
39 | this.price = price;
40 | }
41 |
42 | public String getPic() {
43 | return pic;
44 | }
45 |
46 | public void setPic(String pic) {
47 | this.pic = pic == null ? null : pic.trim();
48 | }
49 |
50 | public Date getCreatetime() {
51 | return createtime;
52 | }
53 |
54 | public void setCreatetime(Date createtime) {
55 | this.createtime = createtime;
56 | }
57 |
58 | public String getDetail() {
59 | return detail;
60 | }
61 |
62 | public void setDetail(String detail) {
63 | this.detail = detail == null ? null : detail.trim();
64 | }
65 | }
--------------------------------------------------------------------------------
/src/po/ItemsCustom.java:
--------------------------------------------------------------------------------
1 | package po;
2 |
3 | /**
4 | *
5 | * Title: ItemsCustom
6 | * Description:商品信息的扩展类
7 | * Company: www.itcast.com
8 | * @author 传智.燕青
9 | * @date 2015-3-20下午2:54:23
10 | * @version 1.0
11 | */
12 | public class ItemsCustom extends Items{
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/src/po/ItemsQueryVo.java:
--------------------------------------------------------------------------------
1 | package po;
2 |
3 | /**
4 | *
5 | * Title: ItemsQueryVo
6 | * Description: 商品的包装类
7 | * Company: www.itcast.com
8 | * @author 传智.燕青
9 | * @date 2015-3-20下午2:52:00
10 | * @version 1.0
11 | */
12 | public class ItemsQueryVo {
13 |
14 | //商品信息
15 | private ItemsCustom itemsCustom;
16 |
17 | public ItemsCustom getItemsCustom() {
18 | return itemsCustom;
19 | }
20 |
21 | public void setItemsCustom(ItemsCustom itemsCustom) {
22 | this.itemsCustom = itemsCustom;
23 | }
24 |
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/src/po/Orderdetail.java:
--------------------------------------------------------------------------------
1 | package po;
2 |
3 | public class Orderdetail {
4 | private Integer id;
5 |
6 | private Integer ordersId;
7 |
8 | private Integer itemsId;
9 |
10 | private Integer itemsNum;
11 |
12 | public Integer getId() {
13 | return id;
14 | }
15 |
16 | public void setId(Integer id) {
17 | this.id = id;
18 | }
19 |
20 | public Integer getOrdersId() {
21 | return ordersId;
22 | }
23 |
24 | public void setOrdersId(Integer ordersId) {
25 | this.ordersId = ordersId;
26 | }
27 |
28 | public Integer getItemsId() {
29 | return itemsId;
30 | }
31 |
32 | public void setItemsId(Integer itemsId) {
33 | this.itemsId = itemsId;
34 | }
35 |
36 | public Integer getItemsNum() {
37 | return itemsNum;
38 | }
39 |
40 | public void setItemsNum(Integer itemsNum) {
41 | this.itemsNum = itemsNum;
42 | }
43 | }
--------------------------------------------------------------------------------
/src/po/Orders.java:
--------------------------------------------------------------------------------
1 | package po;
2 |
3 | import java.util.Date;
4 |
5 | public class Orders {
6 | private Integer id;
7 |
8 | private Integer userId;
9 |
10 | private String number;
11 |
12 | private Date createtime;
13 |
14 | private String note;
15 |
16 | public Integer getId() {
17 | return id;
18 | }
19 |
20 | public void setId(Integer id) {
21 | this.id = id;
22 | }
23 |
24 | public Integer getUserId() {
25 | return userId;
26 | }
27 |
28 | public void setUserId(Integer userId) {
29 | this.userId = userId;
30 | }
31 |
32 | public String getNumber() {
33 | return number;
34 | }
35 |
36 | public void setNumber(String number) {
37 | this.number = number == null ? null : number.trim();
38 | }
39 |
40 | public Date getCreatetime() {
41 | return createtime;
42 | }
43 |
44 | public void setCreatetime(Date createtime) {
45 | this.createtime = createtime;
46 | }
47 |
48 | public String getNote() {
49 | return note;
50 | }
51 |
52 | public void setNote(String note) {
53 | this.note = note == null ? null : note.trim();
54 | }
55 | }
--------------------------------------------------------------------------------
/src/po/User.java:
--------------------------------------------------------------------------------
1 | package po;
2 |
3 | import java.util.Date;
4 |
5 | public class User {
6 | private Integer id;
7 |
8 | private String username;
9 |
10 | private Date birthday;
11 |
12 | private String sex;
13 |
14 | private String address;
15 |
16 | public Integer getId() {
17 | return id;
18 | }
19 |
20 | public void setId(Integer id) {
21 | this.id = id;
22 | }
23 |
24 | public String getUsername() {
25 | return username;
26 | }
27 |
28 | public void setUsername(String username) {
29 | this.username = username == null ? null : username.trim();
30 | }
31 |
32 | public Date getBirthday() {
33 | return birthday;
34 | }
35 |
36 | public void setBirthday(Date birthday) {
37 | this.birthday = birthday;
38 | }
39 |
40 | public String getSex() {
41 | return sex;
42 | }
43 |
44 | public void setSex(String sex) {
45 | this.sex = sex == null ? null : sex.trim();
46 | }
47 |
48 | public String getAddress() {
49 | return address;
50 | }
51 |
52 | public void setAddress(String address) {
53 | this.address = address == null ? null : address.trim();
54 | }
55 | }
--------------------------------------------------------------------------------
/src/service/ItemsService.java:
--------------------------------------------------------------------------------
1 | package service;
2 |
3 | import po.ItemsCustom;
4 | import po.ItemsQueryVo;
5 |
6 | import java.util.List;
7 |
8 | /**
9 | * Created by codingBoy on 16/11/15.
10 | * 商品的service接口
11 | */
12 |
13 | public interface ItemsService {
14 |
15 | //商品的查询列表
16 | public List findItemsList(ItemsQueryVo itemsQueryVo)
17 | throws Exception;
18 |
19 | //根据商品id查询商品信息
20 | public ItemsCustom findItemsById(int id) throws Exception;
21 |
22 | //更新商品信息
23 | /**
24 | * 定义service接口,遵循单一职责,将业务参数细化(不要使用包装类型,比如map)
25 | * @param id 修改商品的id
26 | * @param itemsCustom 修改商品的信息
27 | * @throws Exception
28 | */
29 | public void updateItems(Integer id,ItemsCustom itemsCustom) throws Exception;
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/src/service/impl/ItemsServiceImpl.java:
--------------------------------------------------------------------------------
1 | package service.impl;
2 |
3 | import mapper.ItemsMapper;
4 | import mapper.ItemsMapperCustom;
5 | import org.springframework.beans.BeanUtils;
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import po.Items;
8 | import po.ItemsCustom;
9 | import po.ItemsQueryVo;
10 | import service.ItemsService;
11 |
12 | import java.util.List;
13 |
14 | /**
15 | * Created by codingBoy on 16/11/15.
16 | */
17 | public class ItemsServiceImpl implements ItemsService {
18 |
19 | //注入mapper
20 | @Autowired
21 | private ItemsMapperCustom itemsMapperCustom;
22 |
23 | @Autowired
24 | private ItemsMapper itemsMapper;
25 |
26 | //商品的查询列表
27 | @Override
28 | public List findItemsList(ItemsQueryVo itemsQueryVo) throws Exception {
29 |
30 | return itemsMapperCustom.findItemsList(itemsQueryVo);
31 | }
32 |
33 | @Override
34 | public ItemsCustom findItemsById(int id) throws Exception {
35 |
36 | Items items=itemsMapper.selectByPrimaryKey(id);
37 |
38 | //在这里以后随着需求的变化,需要查询商品的其它相关信息,返回到controller
39 | //所以这个时候用到扩展类更好,如下
40 | ItemsCustom itemsCustom=new ItemsCustom();
41 | //将items的属性拷贝到itemsCustom
42 | BeanUtils.copyProperties(items,itemsCustom);
43 |
44 | return itemsCustom;
45 | }
46 |
47 | @Override
48 | public void updateItems(Integer id,ItemsCustom itemsCustom) throws Exception {
49 |
50 | //在service中一定要写业务代码
51 |
52 |
53 |
54 |
55 | //对于关键业务数据的非空校验
56 | if (id==null)
57 | {
58 | //抛出异常,提示调用接口的用户,id不能唯恐
59 | //...
60 | }
61 |
62 | itemsMapper.updateByPrimaryKeyWithBLOBs(itemsCustom);
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/src/sql/sql_data.sql:
--------------------------------------------------------------------------------
1 | /*
2 | SQLyog v10.2
3 | MySQL - 5.1.72-community : Database - mybatis
4 | *********************************************************************
5 | */
6 |
7 | /*!40101 SET NAMES utf8 */;
8 |
9 | /*!40101 SET SQL_MODE=''*/;
10 |
11 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
12 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
13 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
14 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
15 | /*Data for the table `items` */
16 |
17 | insert into `items`(`id`,`name`,`price`,`detail`,`pic`,`createtime`) values (1,'台式机',3000.0,'该电脑质量非常好!!!!',NULL,'2015-02-03 13:22:53'),(2,'笔记本',6000.0,'笔记本性能好,质量好!!!!!',NULL,'2015-02-09 13:22:57'),(3,'背包',200.0,'名牌背包,容量大质量好!!!!',NULL,'2015-02-06 13:23:02');
18 |
19 | /*Data for the table `orderdetail` */
20 |
21 | insert into `orderdetail`(`id`,`orders_id`,`items_id`,`items_num`) values (1,3,1,1),(2,3,2,3),(3,4,3,4),(4,4,2,3);
22 |
23 | /*Data for the table `orders` */
24 |
25 | insert into `orders`(`id`,`user_id`,`number`,`createtime`,`note`) values (3,1,'1000010','2015-02-04 13:22:35',NULL),(4,1,'1000011','2015-02-03 13:22:41',NULL),(5,10,'1000012','2015-02-12 16:13:23',NULL);
26 |
27 | /*Data for the table `user` */
28 |
29 | insert into `user`(`id`,`username`,`birthday`,`sex`,`address`) values (1,'王五',NULL,'2',NULL),(10,'张三','2014-07-10','1','北京市'),(16,'张小明',NULL,'1','河南郑州'),(22,'陈小明',NULL,'1','河南郑州'),(24,'张三丰',NULL,'1','河南郑州'),(25,'陈小明',NULL,'1','河南郑州'),(26,'王五',NULL,NULL,NULL);
30 |
31 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
32 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
33 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
34 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
35 |
--------------------------------------------------------------------------------
/src/sql/sql_table.sql:
--------------------------------------------------------------------------------
1 | /*
2 | SQLyog v10.2
3 | MySQL - 5.1.72-community : Database - mybatis
4 | *********************************************************************
5 | */
6 |
7 | /*!40101 SET NAMES utf8 */;
8 |
9 | /*!40101 SET SQL_MODE=''*/;
10 |
11 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
12 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
13 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
14 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
15 | /*Table structure for table `items` */
16 |
17 | CREATE TABLE `items` (
18 | `id` int(11) NOT NULL AUTO_INCREMENT,
19 | `name` varchar(32) NOT NULL COMMENT '商品名称',
20 | `price` float(10,1) NOT NULL COMMENT '商品定价',
21 | `detail` text COMMENT '商品描述',
22 | `pic` varchar(64) DEFAULT NULL COMMENT '商品图片',
23 | `createtime` datetime NOT NULL COMMENT '生产日期',
24 | PRIMARY KEY (`id`)
25 | ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
26 |
27 | /*Table structure for table `orderdetail` */
28 |
29 | CREATE TABLE `orderdetail` (
30 | `id` int(11) NOT NULL AUTO_INCREMENT,
31 | `orders_id` int(11) NOT NULL COMMENT '订单id',
32 | `items_id` int(11) NOT NULL COMMENT '商品id',
33 | `items_num` int(11) DEFAULT NULL COMMENT '商品购买数量',
34 | PRIMARY KEY (`id`),
35 | KEY `FK_orderdetail_1` (`orders_id`),
36 | KEY `FK_orderdetail_2` (`items_id`),
37 | CONSTRAINT `FK_orderdetail_1` FOREIGN KEY (`orders_id`) REFERENCES `orders` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
38 | CONSTRAINT `FK_orderdetail_2` FOREIGN KEY (`items_id`) REFERENCES `items` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
39 | ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
40 |
41 | /*Table structure for table `orders` */
42 |
43 | CREATE TABLE `orders` (
44 | `id` int(11) NOT NULL AUTO_INCREMENT,
45 | `user_id` int(11) NOT NULL COMMENT '下单用户id',
46 | `number` varchar(32) NOT NULL COMMENT '订单号',
47 | `createtime` datetime NOT NULL COMMENT '创建订单时间',
48 | `note` varchar(100) DEFAULT NULL COMMENT '备注',
49 | PRIMARY KEY (`id`),
50 | KEY `FK_orders_1` (`user_id`),
51 | CONSTRAINT `FK_orders_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
52 | ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
53 |
54 | /*Table structure for table `user` */
55 |
56 | CREATE TABLE `user` (
57 | `id` int(11) NOT NULL AUTO_INCREMENT,
58 | `username` varchar(32) NOT NULL COMMENT '用户名称',
59 | `birthday` date DEFAULT NULL COMMENT '生日',
60 | `sex` char(1) DEFAULT NULL COMMENT '性别',
61 | `address` varchar(256) DEFAULT NULL COMMENT '地址',
62 | PRIMARY KEY (`id`)
63 | ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8;
64 |
65 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
66 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
67 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
68 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
69 |
--------------------------------------------------------------------------------
/web/WEB-INF/classes/config/db.properties:
--------------------------------------------------------------------------------
1 | jdbc.driver=com.mysql.jdbc.Driver
2 | jdbc.url=jdbc:mysql://localhost:3306/mybatis
3 | jdbc.username=root
4 | jdbc.password=xiaxunwu1996.
5 |
--------------------------------------------------------------------------------
/web/WEB-INF/classes/config/log4j.properties:
--------------------------------------------------------------------------------
1 | # Global logging configuration\uff0c\u5efa\u8bae\u5f00\u53d1\u73af\u5883\u4e2d\u8981\u7528debug
2 | log4j.rootLogger=DEBUG, stdout
3 | # Console output...
4 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
5 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
6 | log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
7 |
--------------------------------------------------------------------------------
/web/WEB-INF/classes/config/mybatis/SqlMapConfig.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/web/WEB-INF/classes/config/spring/applicationContext-dao.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
44 |
45 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/web/WEB-INF/classes/config/spring/applicationContext-service.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/web/WEB-INF/classes/config/spring/applicationContext-transaction.xml:
--------------------------------------------------------------------------------
1 |
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 |
--------------------------------------------------------------------------------
/web/WEB-INF/classes/config/spring/springmvc.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 |
16 |
17 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/web/WEB-INF/classes/controller/ItemsController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/controller/ItemsController.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/controller/converter/CustomDateConverter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/controller/converter/CustomDateConverter.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/controller/propertyeditor/CustomPropertyEditor.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/controller/propertyeditor/CustomPropertyEditor.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/mapper/ItemsMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/mapper/ItemsMapper.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/mapper/ItemsMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | and ${criterion.condition}
23 |
24 |
25 | and ${criterion.condition} #{criterion.value}
26 |
27 |
28 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
29 |
30 |
31 | and ${criterion.condition}
32 |
33 | #{listItem}
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | and ${criterion.condition}
52 |
53 |
54 | and ${criterion.condition} #{criterion.value}
55 |
56 |
57 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
58 |
59 |
60 | and ${criterion.condition}
61 |
62 | #{listItem}
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | id, name, price, pic, createtime
74 |
75 |
76 | detail
77 |
78 |
94 |
108 |
116 |
117 | delete from items
118 | where id = #{id,jdbcType=INTEGER}
119 |
120 |
121 | delete from items
122 |
123 |
124 |
125 |
126 |
127 | insert into items (id, name, price,
128 | pic, createtime, detail
129 | )
130 | values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{price,jdbcType=REAL},
131 | #{pic,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{detail,jdbcType=LONGVARCHAR}
132 | )
133 |
134 |
135 | insert into items
136 |
137 |
138 | id,
139 |
140 |
141 | name,
142 |
143 |
144 | price,
145 |
146 |
147 | pic,
148 |
149 |
150 | createtime,
151 |
152 |
153 | detail,
154 |
155 |
156 |
157 |
158 | #{id,jdbcType=INTEGER},
159 |
160 |
161 | #{name,jdbcType=VARCHAR},
162 |
163 |
164 | #{price,jdbcType=REAL},
165 |
166 |
167 | #{pic,jdbcType=VARCHAR},
168 |
169 |
170 | #{createtime,jdbcType=TIMESTAMP},
171 |
172 |
173 | #{detail,jdbcType=LONGVARCHAR},
174 |
175 |
176 |
177 |
183 |
184 | update items
185 |
186 |
187 | id = #{record.id,jdbcType=INTEGER},
188 |
189 |
190 | name = #{record.name,jdbcType=VARCHAR},
191 |
192 |
193 | price = #{record.price,jdbcType=REAL},
194 |
195 |
196 | pic = #{record.pic,jdbcType=VARCHAR},
197 |
198 |
199 | createtime = #{record.createtime,jdbcType=TIMESTAMP},
200 |
201 |
202 | detail = #{record.detail,jdbcType=LONGVARCHAR},
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 | update items
211 | set id = #{record.id,jdbcType=INTEGER},
212 | name = #{record.name,jdbcType=VARCHAR},
213 | price = #{record.price,jdbcType=REAL},
214 | pic = #{record.pic,jdbcType=VARCHAR},
215 | createtime = #{record.createtime,jdbcType=TIMESTAMP},
216 | detail = #{record.detail,jdbcType=LONGVARCHAR}
217 |
218 |
219 |
220 |
221 |
222 | update items
223 | set id = #{record.id,jdbcType=INTEGER},
224 | name = #{record.name,jdbcType=VARCHAR},
225 | price = #{record.price,jdbcType=REAL},
226 | pic = #{record.pic,jdbcType=VARCHAR},
227 | createtime = #{record.createtime,jdbcType=TIMESTAMP}
228 |
229 |
230 |
231 |
232 |
233 | update items
234 |
235 |
236 | name = #{name,jdbcType=VARCHAR},
237 |
238 |
239 | price = #{price,jdbcType=REAL},
240 |
241 |
242 | pic = #{pic,jdbcType=VARCHAR},
243 |
244 |
245 | createtime = #{createtime,jdbcType=TIMESTAMP},
246 |
247 |
248 | detail = #{detail,jdbcType=LONGVARCHAR},
249 |
250 |
251 | where id = #{id,jdbcType=INTEGER}
252 |
253 |
254 | update items
255 | set name = #{name,jdbcType=VARCHAR},
256 | price = #{price,jdbcType=REAL},
257 | pic = #{pic,jdbcType=VARCHAR},
258 | createtime = #{createtime,jdbcType=TIMESTAMP},
259 | detail = #{detail,jdbcType=LONGVARCHAR}
260 | where id = #{id,jdbcType=INTEGER}
261 |
262 |
263 | update items
264 | set name = #{name,jdbcType=VARCHAR},
265 | price = #{price,jdbcType=REAL},
266 | pic = #{pic,jdbcType=VARCHAR},
267 | createtime = #{createtime,jdbcType=TIMESTAMP}
268 | where id = #{id,jdbcType=INTEGER}
269 |
270 |
--------------------------------------------------------------------------------
/web/WEB-INF/classes/mapper/ItemsMapperCustom.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/mapper/ItemsMapperCustom.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/mapper/ItemsMapperCustom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
11 |
12 |
13 |
14 | and name like '%${itemsCustom.name}%'
15 |
16 |
17 | and id = #{itemsCustom.id}
18 |
19 |
20 |
21 |
22 |
23 |
24 |
27 |
28 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/web/WEB-INF/classes/mapper/OrderdetailMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/mapper/OrderdetailMapper.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/mapper/OrderdetailMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | and ${criterion.condition}
19 |
20 |
21 | and ${criterion.condition} #{criterion.value}
22 |
23 |
24 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
25 |
26 |
27 | and ${criterion.condition}
28 |
29 | #{listItem}
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | and ${criterion.condition}
48 |
49 |
50 | and ${criterion.condition} #{criterion.value}
51 |
52 |
53 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
54 |
55 |
56 | and ${criterion.condition}
57 |
58 | #{listItem}
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | id, orders_id, items_id, items_num
70 |
71 |
85 |
91 |
92 | delete from orderdetail
93 | where id = #{id,jdbcType=INTEGER}
94 |
95 |
96 | delete from orderdetail
97 |
98 |
99 |
100 |
101 |
102 | insert into orderdetail (id, orders_id, items_id,
103 | items_num)
104 | values (#{id,jdbcType=INTEGER}, #{ordersId,jdbcType=INTEGER}, #{itemsId,jdbcType=INTEGER},
105 | #{itemsNum,jdbcType=INTEGER})
106 |
107 |
108 | insert into orderdetail
109 |
110 |
111 | id,
112 |
113 |
114 | orders_id,
115 |
116 |
117 | items_id,
118 |
119 |
120 | items_num,
121 |
122 |
123 |
124 |
125 | #{id,jdbcType=INTEGER},
126 |
127 |
128 | #{ordersId,jdbcType=INTEGER},
129 |
130 |
131 | #{itemsId,jdbcType=INTEGER},
132 |
133 |
134 | #{itemsNum,jdbcType=INTEGER},
135 |
136 |
137 |
138 |
144 |
145 | update orderdetail
146 |
147 |
148 | id = #{record.id,jdbcType=INTEGER},
149 |
150 |
151 | orders_id = #{record.ordersId,jdbcType=INTEGER},
152 |
153 |
154 | items_id = #{record.itemsId,jdbcType=INTEGER},
155 |
156 |
157 | items_num = #{record.itemsNum,jdbcType=INTEGER},
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 | update orderdetail
166 | set id = #{record.id,jdbcType=INTEGER},
167 | orders_id = #{record.ordersId,jdbcType=INTEGER},
168 | items_id = #{record.itemsId,jdbcType=INTEGER},
169 | items_num = #{record.itemsNum,jdbcType=INTEGER}
170 |
171 |
172 |
173 |
174 |
175 | update orderdetail
176 |
177 |
178 | orders_id = #{ordersId,jdbcType=INTEGER},
179 |
180 |
181 | items_id = #{itemsId,jdbcType=INTEGER},
182 |
183 |
184 | items_num = #{itemsNum,jdbcType=INTEGER},
185 |
186 |
187 | where id = #{id,jdbcType=INTEGER}
188 |
189 |
190 | update orderdetail
191 | set orders_id = #{ordersId,jdbcType=INTEGER},
192 | items_id = #{itemsId,jdbcType=INTEGER},
193 | items_num = #{itemsNum,jdbcType=INTEGER}
194 | where id = #{id,jdbcType=INTEGER}
195 |
196 |
--------------------------------------------------------------------------------
/web/WEB-INF/classes/mapper/OrdersMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/mapper/OrdersMapper.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/mapper/OrdersMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | and ${criterion.condition}
20 |
21 |
22 | and ${criterion.condition} #{criterion.value}
23 |
24 |
25 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
26 |
27 |
28 | and ${criterion.condition}
29 |
30 | #{listItem}
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | and ${criterion.condition}
49 |
50 |
51 | and ${criterion.condition} #{criterion.value}
52 |
53 |
54 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
55 |
56 |
57 | and ${criterion.condition}
58 |
59 | #{listItem}
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 | id, user_id, number, createtime, note
71 |
72 |
86 |
92 |
93 | delete from orders
94 | where id = #{id,jdbcType=INTEGER}
95 |
96 |
97 | delete from orders
98 |
99 |
100 |
101 |
102 |
103 | insert into orders (id, user_id, number,
104 | createtime, note)
105 | values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{number,jdbcType=VARCHAR},
106 | #{createtime,jdbcType=TIMESTAMP}, #{note,jdbcType=VARCHAR})
107 |
108 |
109 | insert into orders
110 |
111 |
112 | id,
113 |
114 |
115 | user_id,
116 |
117 |
118 | number,
119 |
120 |
121 | createtime,
122 |
123 |
124 | note,
125 |
126 |
127 |
128 |
129 | #{id,jdbcType=INTEGER},
130 |
131 |
132 | #{userId,jdbcType=INTEGER},
133 |
134 |
135 | #{number,jdbcType=VARCHAR},
136 |
137 |
138 | #{createtime,jdbcType=TIMESTAMP},
139 |
140 |
141 | #{note,jdbcType=VARCHAR},
142 |
143 |
144 |
145 |
151 |
152 | update orders
153 |
154 |
155 | id = #{record.id,jdbcType=INTEGER},
156 |
157 |
158 | user_id = #{record.userId,jdbcType=INTEGER},
159 |
160 |
161 | number = #{record.number,jdbcType=VARCHAR},
162 |
163 |
164 | createtime = #{record.createtime,jdbcType=TIMESTAMP},
165 |
166 |
167 | note = #{record.note,jdbcType=VARCHAR},
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 | update orders
176 | set id = #{record.id,jdbcType=INTEGER},
177 | user_id = #{record.userId,jdbcType=INTEGER},
178 | number = #{record.number,jdbcType=VARCHAR},
179 | createtime = #{record.createtime,jdbcType=TIMESTAMP},
180 | note = #{record.note,jdbcType=VARCHAR}
181 |
182 |
183 |
184 |
185 |
186 | update orders
187 |
188 |
189 | user_id = #{userId,jdbcType=INTEGER},
190 |
191 |
192 | number = #{number,jdbcType=VARCHAR},
193 |
194 |
195 | createtime = #{createtime,jdbcType=TIMESTAMP},
196 |
197 |
198 | note = #{note,jdbcType=VARCHAR},
199 |
200 |
201 | where id = #{id,jdbcType=INTEGER}
202 |
203 |
204 | update orders
205 | set user_id = #{userId,jdbcType=INTEGER},
206 | number = #{number,jdbcType=VARCHAR},
207 | createtime = #{createtime,jdbcType=TIMESTAMP},
208 | note = #{note,jdbcType=VARCHAR}
209 | where id = #{id,jdbcType=INTEGER}
210 |
211 |
--------------------------------------------------------------------------------
/web/WEB-INF/classes/mapper/UserMapper.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/mapper/UserMapper.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/mapper/UserMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | and ${criterion.condition}
20 |
21 |
22 | and ${criterion.condition} #{criterion.value}
23 |
24 |
25 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
26 |
27 |
28 | and ${criterion.condition}
29 |
30 | #{listItem}
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | and ${criterion.condition}
49 |
50 |
51 | and ${criterion.condition} #{criterion.value}
52 |
53 |
54 | and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
55 |
56 |
57 | and ${criterion.condition}
58 |
59 | #{listItem}
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 | id, username, birthday, sex, address
71 |
72 |
86 |
92 |
93 | delete from user
94 | where id = #{id,jdbcType=INTEGER}
95 |
96 |
97 | delete from user
98 |
99 |
100 |
101 |
102 |
103 | insert into user (id, username, birthday,
104 | sex, address)
105 | values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{birthday,jdbcType=DATE},
106 | #{sex,jdbcType=CHAR}, #{address,jdbcType=VARCHAR})
107 |
108 |
109 | insert into user
110 |
111 |
112 | id,
113 |
114 |
115 | username,
116 |
117 |
118 | birthday,
119 |
120 |
121 | sex,
122 |
123 |
124 | address,
125 |
126 |
127 |
128 |
129 | #{id,jdbcType=INTEGER},
130 |
131 |
132 | #{username,jdbcType=VARCHAR},
133 |
134 |
135 | #{birthday,jdbcType=DATE},
136 |
137 |
138 | #{sex,jdbcType=CHAR},
139 |
140 |
141 | #{address,jdbcType=VARCHAR},
142 |
143 |
144 |
145 |
151 |
152 | update user
153 |
154 |
155 | id = #{record.id,jdbcType=INTEGER},
156 |
157 |
158 | username = #{record.username,jdbcType=VARCHAR},
159 |
160 |
161 | birthday = #{record.birthday,jdbcType=DATE},
162 |
163 |
164 | sex = #{record.sex,jdbcType=CHAR},
165 |
166 |
167 | address = #{record.address,jdbcType=VARCHAR},
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 | update user
176 | set id = #{record.id,jdbcType=INTEGER},
177 | username = #{record.username,jdbcType=VARCHAR},
178 | birthday = #{record.birthday,jdbcType=DATE},
179 | sex = #{record.sex,jdbcType=CHAR},
180 | address = #{record.address,jdbcType=VARCHAR}
181 |
182 |
183 |
184 |
185 |
186 | update user
187 |
188 |
189 | username = #{username,jdbcType=VARCHAR},
190 |
191 |
192 | birthday = #{birthday,jdbcType=DATE},
193 |
194 |
195 | sex = #{sex,jdbcType=CHAR},
196 |
197 |
198 | address = #{address,jdbcType=VARCHAR},
199 |
200 |
201 | where id = #{id,jdbcType=INTEGER}
202 |
203 |
204 | update user
205 | set username = #{username,jdbcType=VARCHAR},
206 | birthday = #{birthday,jdbcType=DATE},
207 | sex = #{sex,jdbcType=CHAR},
208 | address = #{address,jdbcType=VARCHAR}
209 | where id = #{id,jdbcType=INTEGER}
210 |
211 |
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/Items.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/Items.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/ItemsCustom.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/ItemsCustom.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/ItemsExample$Criteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/ItemsExample$Criteria.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/ItemsExample$Criterion.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/ItemsExample$Criterion.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/ItemsExample$GeneratedCriteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/ItemsExample$GeneratedCriteria.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/ItemsExample.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/ItemsExample.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/ItemsQueryVo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/ItemsQueryVo.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/Orderdetail.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/Orderdetail.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/OrderdetailExample$Criteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/OrderdetailExample$Criteria.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/OrderdetailExample$Criterion.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/OrderdetailExample$Criterion.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/OrderdetailExample$GeneratedCriteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/OrderdetailExample$GeneratedCriteria.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/OrderdetailExample.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/OrderdetailExample.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/Orders.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/Orders.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/OrdersExample$Criteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/OrdersExample$Criteria.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/OrdersExample$Criterion.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/OrdersExample$Criterion.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/OrdersExample$GeneratedCriteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/OrdersExample$GeneratedCriteria.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/OrdersExample.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/OrdersExample.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/User.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/User.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/UserExample$Criteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/UserExample$Criteria.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/UserExample$Criterion.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/UserExample$Criterion.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/UserExample$GeneratedCriteria.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/UserExample$GeneratedCriteria.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/po/UserExample.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/po/UserExample.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/service/ItemsService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/service/ItemsService.class
--------------------------------------------------------------------------------
/web/WEB-INF/classes/service/impl/ItemsServiceImpl.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/classes/service/impl/ItemsServiceImpl.class
--------------------------------------------------------------------------------
/web/WEB-INF/jsp/editItem.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
4 | <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
5 |
6 |
7 |
8 |
9 | 修改商品信息
10 |
11 |
12 |
13 |
42 |
43 |
--------------------------------------------------------------------------------
/web/WEB-INF/jsp/itemsList.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
4 | <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
5 |
6 |
7 |
8 |
9 | 查询商品列表
10 |
11 |
12 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/web/WEB-INF/lib/aopalliance-1.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/aopalliance-1.0.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/asm-3.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/asm-3.3.1.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/aspectjweaver-1.6.11.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/aspectjweaver-1.6.11.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/cglib-2.2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/cglib-2.2.2.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/commons-dbcp-1.2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/commons-dbcp-1.2.2.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/commons-logging-1.1.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/commons-logging-1.1.1.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/commons-pool-1.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/commons-pool-1.3.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/javassist-3.17.1-GA.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/javassist-3.17.1-GA.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/jstl-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/jstl-1.2.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/junit-4.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/junit-4.9.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/log4j-1.2.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/log4j-1.2.17.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/log4j-api-2.0-rc1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/log4j-api-2.0-rc1.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/log4j-core-2.0-rc1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/log4j-core-2.0-rc1.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/mybatis-3.2.7.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/mybatis-3.2.7.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/mybatis-spring-1.2.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/mybatis-spring-1.2.2.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/slf4j-api-1.7.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/slf4j-api-1.7.5.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/slf4j-log4j12-1.7.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/slf4j-log4j12-1.7.5.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/spring-aop-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/spring-aop-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/spring-aspects-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/spring-aspects-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/spring-beans-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/spring-beans-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/spring-context-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/spring-context-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/spring-context-support-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/spring-context-support-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/spring-core-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/spring-core-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/spring-expression-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/spring-expression-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/spring-jdbc-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/spring-jdbc-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/spring-orm-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/spring-orm-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/spring-test-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/spring-test-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/spring-tx-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/spring-tx-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/spring-web-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/spring-web-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/web/WEB-INF/lib/spring-webmvc-3.2.0.RELEASE.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codingXiaxw/ssm/0324ea8d447402247ce8ecc2768ceb3c70e6320d/web/WEB-INF/lib/spring-webmvc-3.2.0.RELEASE.jar
--------------------------------------------------------------------------------
/web/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | springmvc
8 | org.springframework.web.servlet.DispatcherServlet
9 |
10 |
11 | contextConfigLocation
12 |
14 | classpath:config/spring/springmvc.xml
15 |
16 |
17 |
18 |
19 |
20 |
21 | contextConfigLocation
22 | /WEB-INF/classes/config/spring/applicationContext-*.xml
23 |
24 |
25 | org.springframework.web.context.ContextLoaderListener
26 |
27 |
28 |
29 | springmvc
30 |
33 |
34 | *.action
35 |
36 |
--------------------------------------------------------------------------------
/web/index.jsp:
--------------------------------------------------------------------------------
1 | <%--
2 | Created by IntelliJ IDEA.
3 | User: codingBoy
4 | Date: 16/11/15
5 | Time: 下午2:42
6 | To change this template use File | Settings | File Templates.
7 | --%>
8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %>
9 |
10 |
11 | $Title$
12 |
13 |
14 | $END$
15 |
16 |
17 |
--------------------------------------------------------------------------------