diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..35410ca --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded.xml b/.idea/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded.xml new file mode 100644 index 0000000..ecf592b --- /dev/null +++ b/.idea/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded.xml @@ -0,0 +1,13 @@ + + + $PROJECT_DIR$/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/lib.xml b/.idea/libraries/lib.xml new file mode 100644 index 0000000..4b6911e --- /dev/null +++ b/.idea/libraries/lib.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..1f014b5 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..ee10477 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..2b63946 --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Flowers-SpringMVCProject-2206 0 5.iml b/Flowers-SpringMVCProject-2206 0 5.iml new file mode 100644 index 0000000..bc73df7 --- /dev/null +++ b/Flowers-SpringMVCProject-2206 0 5.iml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/controller/FirstController.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/controller/FirstController.class new file mode 100644 index 0000000..1d7991d Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/controller/FirstController.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/controller/ItemCategoryController.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/controller/ItemCategoryController.class new file mode 100644 index 0000000..9f928d8 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/controller/ItemCategoryController.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/controller/ItemController.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/controller/ItemController.class new file mode 100644 index 0000000..0014d34 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/controller/ItemController.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/controller/UserController.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/controller/UserController.class new file mode 100644 index 0000000..51a1fda Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/controller/UserController.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/entity/Item.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/entity/Item.class new file mode 100644 index 0000000..6438f5e Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/entity/Item.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/entity/ItemCategory.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/entity/ItemCategory.class new file mode 100644 index 0000000..e28013b Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/entity/ItemCategory.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/entity/User.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/entity/User.class new file mode 100644 index 0000000..b76fc21 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/com/ssm/entity/User.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/springmvc.xml b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/springmvc.xml new file mode 100644 index 0000000..a202e8b --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/classes/springmvc.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/web.xml b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/web.xml new file mode 100644 index 0000000..d80081d --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web3_exploded/WEB-INF/web.xml @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/controller/FirstController.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/controller/FirstController.class new file mode 100644 index 0000000..1d7991d Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/controller/FirstController.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/controller/ItemCategoryController.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/controller/ItemCategoryController.class new file mode 100644 index 0000000..9f928d8 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/controller/ItemCategoryController.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/controller/ItemController.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/controller/ItemController.class new file mode 100644 index 0000000..0014d34 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/controller/ItemController.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/controller/UserController.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/controller/UserController.class new file mode 100644 index 0000000..51d5c7a Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/controller/UserController.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/entity/Item.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/entity/Item.class new file mode 100644 index 0000000..6438f5e Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/entity/Item.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/entity/ItemCategory.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/entity/ItemCategory.class new file mode 100644 index 0000000..e28013b Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/entity/ItemCategory.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/entity/User.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/entity/User.class new file mode 100644 index 0000000..b76fc21 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/com/ssm/entity/User.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/springmvc.xml b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/springmvc.xml new file mode 100644 index 0000000..a202e8b --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/classes/springmvc.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/commons-logging-1.2.jar b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/commons-logging-1.2.jar new file mode 100644 index 0000000..93a3b9f Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/commons-logging-1.2.jar differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/jsp-api.jar b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/jsp-api.jar new file mode 100644 index 0000000..d405b74 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/jsp-api.jar differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/servlet-api.jar b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/servlet-api.jar new file mode 100644 index 0000000..209d963 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/servlet-api.jar differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-aop-5.3.9.jar b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-aop-5.3.9.jar new file mode 100644 index 0000000..0228616 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-aop-5.3.9.jar differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-beans-5.3.9.jar b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-beans-5.3.9.jar new file mode 100644 index 0000000..b250ccc Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-beans-5.3.9.jar differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-context-5.3.9.jar b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-context-5.3.9.jar new file mode 100644 index 0000000..48e3715 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-context-5.3.9.jar differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-core-5.3.9.jar b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-core-5.3.9.jar new file mode 100644 index 0000000..e51f071 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-core-5.3.9.jar differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-expression-5.3.9.jar b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-expression-5.3.9.jar new file mode 100644 index 0000000..42fcd3f Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-expression-5.3.9.jar differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-web-5.3.9.jar b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-web-5.3.9.jar new file mode 100644 index 0000000..d575c2b Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-web-5.3.9.jar differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-webmvc-5.3.9.jar b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-webmvc-5.3.9.jar new file mode 100644 index 0000000..168a85c Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/lib/spring-webmvc-5.3.9.jar differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/view/showFirst.jsp b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/view/showFirst.jsp new file mode 100644 index 0000000..3c42d25 --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/view/showFirst.jsp @@ -0,0 +1,12 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +展示入门程序信息 + + +Success! + + \ No newline at end of file diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/view/showItem.jsp b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/view/showItem.jsp new file mode 100644 index 0000000..2b940e6 --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/view/showItem.jsp @@ -0,0 +1,31 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +展示Controller接收及响应数据 + + +Success! +
+商品信息已在控制台输出! +<%--
--%> +<%--商品名称:${productInfo.pname}--%> +<%--
--%> +<%--是否热门:${productInfo.isHot}--%> +<%--
--%> +<%--市场价格:${productInfo.marketPrice}--%> +<%--
--%> +<%--销售价格:${productInfo.shopPrice}--%> +<%--
--%> +<%--商品图片:${productInfo.image}--%> +<%--
--%> +<%--分类名称:${productInfo.category.cname}--%> +<%--
--%> +<%--商品描述:${productInfo.pdesc}--%> +<%--
--%> +<%--上架日期:${productInfo.pdate}--%> + + + \ No newline at end of file diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/view/showItemCategory.jsp b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/view/showItemCategory.jsp new file mode 100644 index 0000000..6e86a69 --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/view/showItemCategory.jsp @@ -0,0 +1,16 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +展示花卉类目信息 + + +Success! +
+类目编号:${itemCategoryInfo.id} +
+类目名称:${itemCategoryInfo.name} + + \ No newline at end of file diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/view/showUser.jsp b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/view/showUser.jsp new file mode 100644 index 0000000..45aae67 --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/view/showUser.jsp @@ -0,0 +1,31 @@ +<%-- + Created by IntelliJ IDEA. + User: 86178 + Date: 2025/3/31 + Time: 22:31 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + UserController + + +Success! +
+用户id:${printInfo.uid} +
+
+用户名称:${printInfo.uname} +
+
+用户电话:${printInfo.unumber} +
+
+用户地址:${printInfo.uaddress} +
+
+用户首次登录时间:${printInfo.udate} +
+ + diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/web.xml b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/web.xml new file mode 100644 index 0000000..313ae7c --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/WEB-INF/web.xml @@ -0,0 +1,43 @@ + + + SpringMVCFirst + + index.html + index.htm + index.jsp + default.html + default.htm + default.jsp + + + springDispatcherServlet + org.springframework.web.servlet.DispatcherServlet + + + contextConfigLocation + + classpath:springmvc.xml + + + 1 + + + springDispatcherServlet + + / + + + + characterEncodingFilter + org.springframework.web.filter.CharacterEncodingFilter + + encoding + UTF-8 + + + + characterEncodingFilter + /* + + + \ No newline at end of file diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/addItem.jsp b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/addItem.jsp new file mode 100644 index 0000000..ee0feb0 --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/addItem.jsp @@ -0,0 +1,67 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +添加花卉 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
花卉编号:
花卉名称:
花卉价格:
折扣:
花卉一级类目:
花卉二级类目:
商品主图:
副图1:
描述:
+ +
+
+ + \ No newline at end of file diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/addItemCategory.jsp b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/addItemCategory.jsp new file mode 100644 index 0000000..fbc0b30 --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/addItemCategory.jsp @@ -0,0 +1,18 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +添加花卉类目信息 + + +
+ 类目编号: +
+ 类目名称: +
+ +
+ + \ No newline at end of file diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/addUser.jsp b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/addUser.jsp new file mode 100644 index 0000000..2f60d54 --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/addUser.jsp @@ -0,0 +1,49 @@ +<%-- + Created by IntelliJ IDEA. + User: 86178 + Date: 2025/3/31 + Time: 22:04 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 添加用户 + + +
+ + 用户id + + + + + 用户姓名 + + + + + 用户号码 + + + + + 用户地址 + + + + + 登录日期 + + + + + + + + + + +
+ + diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/index.jsp b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/index.jsp new file mode 100644 index 0000000..5fa803d --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/index.jsp @@ -0,0 +1,13 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +入门程序 + + +hello world +addUser.jsp + + \ No newline at end of file diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/publicManagement.jsp b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/publicManagement.jsp new file mode 100644 index 0000000..90f124a --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_Web_exploded/publicManagement.jsp @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: bd + Date: 2025/3/27 + Time: 23:30 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 入门程序 + + +success! + + diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/controller/FirstController.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/controller/FirstController.class new file mode 100644 index 0000000..1d7991d Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/controller/FirstController.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/controller/ItemCategoryController.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/controller/ItemCategoryController.class new file mode 100644 index 0000000..9f928d8 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/controller/ItemCategoryController.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/controller/ItemController.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/controller/ItemController.class new file mode 100644 index 0000000..0014d34 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/controller/ItemController.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/controller/UserController.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/controller/UserController.class new file mode 100644 index 0000000..56f5856 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/controller/UserController.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/entity/Item.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/entity/Item.class new file mode 100644 index 0000000..6438f5e Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/entity/Item.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/entity/ItemCategory.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/entity/ItemCategory.class new file mode 100644 index 0000000..e28013b Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/entity/ItemCategory.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/entity/User.class b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/entity/User.class new file mode 100644 index 0000000..b76fc21 Binary files /dev/null and b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/com/ssm/entity/User.class differ diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/springmvc.xml b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/springmvc.xml new file mode 100644 index 0000000..a202e8b --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/classes/springmvc.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + diff --git a/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/web.xml b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/web.xml new file mode 100644 index 0000000..d80081d --- /dev/null +++ b/out/artifacts/Flowers_SpringMVCProject_2206_0_5_war_exploded/WEB-INF/web.xml @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/controller/FirstController.class b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/controller/FirstController.class new file mode 100644 index 0000000..1d7991d Binary files /dev/null and b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/controller/FirstController.class differ diff --git a/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/controller/ItemCategoryController.class b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/controller/ItemCategoryController.class new file mode 100644 index 0000000..9f928d8 Binary files /dev/null and b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/controller/ItemCategoryController.class differ diff --git a/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/controller/ItemController.class b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/controller/ItemController.class new file mode 100644 index 0000000..0014d34 Binary files /dev/null and b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/controller/ItemController.class differ diff --git a/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/controller/UserController.class b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/controller/UserController.class new file mode 100644 index 0000000..51d5c7a Binary files /dev/null and b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/controller/UserController.class differ diff --git a/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/entity/Item.class b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/entity/Item.class new file mode 100644 index 0000000..6438f5e Binary files /dev/null and b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/entity/Item.class differ diff --git a/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/entity/ItemCategory.class b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/entity/ItemCategory.class new file mode 100644 index 0000000..e28013b Binary files /dev/null and b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/entity/ItemCategory.class differ diff --git a/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/entity/User.class b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/entity/User.class new file mode 100644 index 0000000..b76fc21 Binary files /dev/null and b/out/production/Flowers-SpringMVCProject-2206 0 5/com/ssm/entity/User.class differ diff --git a/out/production/Flowers-SpringMVCProject-2206 0 5/springmvc.xml b/out/production/Flowers-SpringMVCProject-2206 0 5/springmvc.xml new file mode 100644 index 0000000..a202e8b --- /dev/null +++ b/out/production/Flowers-SpringMVCProject-2206 0 5/springmvc.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/com/ssm/controller/UserController.java b/src/com/ssm/controller/UserController.java new file mode 100644 index 0000000..4b40a14 --- /dev/null +++ b/src/com/ssm/controller/UserController.java @@ -0,0 +1,19 @@ +package com.ssm.controller; + +import com.ssm.entity.User; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.servlet.ModelAndView; +//请求处理器 +@Controller +@RequestMapping("nihao") +public class UserController { + @RequestMapping("User") + public ModelAndView test(User user){ + user.printInfo(); + System.out.println("用户信息:"+user.toString()); + ModelAndView mv = new ModelAndView("showUser"); + mv.addObject("printInfo", user); + return mv; + } +} diff --git a/src/com/ssm/entity/User.java b/src/com/ssm/entity/User.java new file mode 100644 index 0000000..827743c --- /dev/null +++ b/src/com/ssm/entity/User.java @@ -0,0 +1,58 @@ +package com.ssm.entity; + +import org.springframework.format.annotation.DateTimeFormat; + +import java.util.Date; + +public class User { + private Integer uid;//用户id + private String uname;//用户名称 + private String unumber;//用户电话 + private String uaddress;//用户地址 + @DateTimeFormat(pattern = "yyyy-mm-dd")//用户首次登录日期 + private Date udate; + + public Integer getUid() { + return uid; + } + + public void setUid(Integer uid) { + this.uid = uid; + } + + public String getUname() { + return uname; + } + + public void setUname(String uname) { + this.uname = uname; + } + + public String getUnumber() { + return unumber; + } + + public void setUnumber(String unumber) { + this.unumber = unumber; + } + + public String getUaddress() { + return uaddress; + } + + public void setUaddress(String uaddress) { + this.uaddress = uaddress; + } + + public Date getUdate() { + return udate; + } + + public void setUdate(Date udate) { + this.udate = udate; + } + public void printInfo(){ + System.out.println("用户id="+uid +"\n用户名称="+uname+"\n用户电话="+unumber+"\n用户地址="+uaddress+"\n用户首次登录日期="+udate); + } + +} diff --git a/src/springmvc.xml b/src/springmvc.xml index a202e8b..99a154d 100644 --- a/src/springmvc.xml +++ b/src/springmvc.xml @@ -13,6 +13,7 @@ + diff --git a/web/WEB-INF/view/showUser.jsp b/web/WEB-INF/view/showUser.jsp new file mode 100644 index 0000000..45aae67 --- /dev/null +++ b/web/WEB-INF/view/showUser.jsp @@ -0,0 +1,31 @@ +<%-- + Created by IntelliJ IDEA. + User: 86178 + Date: 2025/3/31 + Time: 22:31 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + UserController + + +Success! +
+用户id:${printInfo.uid} +
+
+用户名称:${printInfo.uname} +
+
+用户电话:${printInfo.unumber} +
+
+用户地址:${printInfo.uaddress} +
+
+用户首次登录时间:${printInfo.udate} +
+ + diff --git a/web/WEB-INF/web.xml b/web/WEB-INF/web.xml index 313ae7c..8d98dd6 100644 --- a/web/WEB-INF/web.xml +++ b/web/WEB-INF/web.xml @@ -8,7 +8,8 @@ default.html default.htm default.jsp - + + springDispatcherServlet org.springframework.web.servlet.DispatcherServlet diff --git a/web/addUser.jsp b/web/addUser.jsp new file mode 100644 index 0000000..2f60d54 --- /dev/null +++ b/web/addUser.jsp @@ -0,0 +1,49 @@ +<%-- + Created by IntelliJ IDEA. + User: 86178 + Date: 2025/3/31 + Time: 22:04 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + 添加用户 + + +
+ + 用户id + + + + + 用户姓名 + + + + + 用户号码 + + + + + 用户地址 + + + + + 登录日期 + + + + + + + + + + +
+ +