diff --git a/src/main/java/com/yingjun/ssm/web/UserController.java b/src/main/java/com/yingjun/ssm/web/UserController.java index 96fd8a42a7352e19b7e938912098fd05a126bc6e..c945fbf7b06defbede3a0bb2bb2d5f4e02189fb4 100644 --- a/src/main/java/com/yingjun/ssm/web/UserController.java +++ b/src/main/java/com/yingjun/ssm/web/UserController.java @@ -8,7 +8,7 @@ import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; - +import org.springframework.web.bind.annotation.ResponseBody; /** @@ -25,10 +25,11 @@ public class UserController { * 用户登录 * @return */ - @RequestMapping(value = "/userLogin") + @ResponseBody + @RequestMapping(value = "/userLogin",produces="text/html;charset=UTF-8") public String userLogin(@ModelAttribute User user) { LOG.info("表单提交的用户信息:" + user.toString()); - return "/user/userLogin"; + return "登录成功"; } /** diff --git a/src/main/webapp/WEB-INF/jsp/common/head.jsp b/src/main/webapp/WEB-INF/jsp/common/head.jsp deleted file mode 100644 index 8c5a1261f33ffdf62a1e4732e29f0a07b3082d0b..0000000000000000000000000000000000000000 --- a/src/main/webapp/WEB-INF/jsp/common/head.jsp +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/common/tag.jsp b/src/main/webapp/WEB-INF/jsp/common/tag.jsp deleted file mode 100644 index 76c604a9c53acd3c763aa4e4357a81dd9663637e..0000000000000000000000000000000000000000 --- a/src/main/webapp/WEB-INF/jsp/common/tag.jsp +++ /dev/null @@ -1,6 +0,0 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> -<% - request.setCharacterEncoding("utf-8"); - String path = request.getContextPath(); -%> \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/goodslist.jsp b/src/main/webapp/WEB-INF/jsp/goodslist.jsp deleted file mode 100644 index a4a8c1f877068f4a697852aa9477701dceffea62..0000000000000000000000000000000000000000 --- a/src/main/webapp/WEB-INF/jsp/goodslist.jsp +++ /dev/null @@ -1,85 +0,0 @@ -<%@ page contentType="text/html;charset=UTF-8" language="java"%> -<%@include file="common/tag.jsp"%> - - - -商品列表 -<%@include file="common/head.jsp"%> - - -
-
-
-

商品列表

-
-
- - - - - - - - - - - - - - - - - - - - - - - -
商品ID商品名称商品价格商品状态商品数量操作
${goods.goodsId}${goods.title}${goods.price}已下架 销售中${goods.number}
- -
-
-
- - - <%--登录弹出层 输入电话--%> - - - - - - - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/user/userLogin.jsp b/src/main/webapp/WEB-INF/jsp/user/userLogin.jsp index b2f3fca5615bdc79627c566b8e49816e18fc8cf1..615e59a28a12bc5eb6d2e8977d0accfc6ffdab1a 100644 --- a/src/main/webapp/WEB-INF/jsp/user/userLogin.jsp +++ b/src/main/webapp/WEB-INF/jsp/user/userLogin.jsp @@ -40,7 +40,7 @@

用户登录

-
+