UserController.java 875 字节
Newer Older
Y
yingjun 已提交
1 2
package com.yingjun.ssm.web;

3

Y
yingjun 已提交
4 5 6 7 8 9
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

10

Y
yingjun 已提交
11

12 13 14 15
/**
 * 用户
 * @author 包
 */
Y
yingjun 已提交
16 17 18 19 20
@Controller
@RequestMapping("/user")
public class UserController {

	private final Logger LOG = LoggerFactory.getLogger(this.getClass());
21

22 23 24 25
    /**
     * 用户登录
     * @return
     */
26
	@RequestMapping(value = "/userLogin")
27 28
	public String userLogin() {
		LOG.info("用户登录");
29 30
		return "/user/userLogin";
	}
31 32 33 34 35

    /**
     * 用户注册
     * @return
     */
36
	@RequestMapping(value = "/userRegister", method = RequestMethod.GET)
37 38
	public String userRegister() {
		LOG.info("用户注册");
39
		return "/user/userResgiter";
Y
yingjun 已提交
40 41
	}
}