提交 85b4c319 编写于 作者: 爱吃血肠's avatar 爱吃血肠

成功接到用户登录的表单数据

上级 aa80f27b
#优雅的SSM架构(Spring+SpringMVC+Mybatis)
- Maven
- Spring(IOC DI AOP 声明式事务处理)
- SpringMVC(支持Restful风格)
- Hibernate Validate(参数校验)
- Mybatis(最少配置方案)
- Quartz时间调度
- Redis缓存(ProtoStuff序列化)
- [Redis Sentinel主从高可用方案](http://wosyingjun.iteye.com/blog/2289593)
- [Redis Cluster集群高可用方案](http://wosyingjun.iteye.com/blog/2289220)
- [Druid(数据源配置 sql防注入 sql性能监控)](http://wosyingjun.iteye.com/blog/2306139)
- 统一的异常处理
- JSP JSTL JavaScript
- Sping Shiro权限控制(待完善)
###**架构图:**
![](http://i.imgur.com/vc6iu0X.png)
\ No newline at end of file
哈尔滨理工大学软件学院
李云峰毕业设计 集群注册系统
package com.yingjun.ssm.web;
import com.yingjun.ssm.entity.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
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;
......@@ -24,8 +26,8 @@ public class UserController {
* @return
*/
@RequestMapping(value = "/userLogin")
public String userLogin() {
LOG.info("用户登录");
public String userLogin(@ModelAttribute User user) {
LOG.info("表单提交的用户信息:" + user.toString());
return "/user/userLogin";
}
......
......@@ -44,10 +44,10 @@
<div class="detail">
<ul>
<li>
<input class="input telNum" type="text" name="" id="" value="" placeholder="请输入邮箱"/>
<input class="input telNum" type="text" name="email" id="" value="" placeholder="请输入邮箱"/>
</li>
<li>
<input class="input pwd" type="password" name="" id="pwd" value="" placeholder="请输入密码"/>
<input class="input pwd" type="password" name="password" id="pwd" value="" placeholder="请输入密码"/>
</li>
</ul>
<div class="forgatPwd">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册