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

3

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

11

Y
yingjun 已提交
12 13 14 15 16 17 18 19

@Controller
@RequestMapping("/user")
public class UserController {

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

20 21 22

	@RequestMapping(value = "/userLogin", method = RequestMethod.GET)
	public String userLogin(Model model, Integer offset, Integer limit) {
Y
yingjun 已提交
23
		LOG.info("invoke----------/user/list");
24 25 26 27 28 29
		return "/user/userLogin";
	}
	@RequestMapping(value = "/userRegister", method = RequestMethod.GET)
	public String userRegister(Model model, Integer offset, Integer limit) {
		LOG.info("invoke----------/user/list");
		return "/user/userResgiter";
Y
yingjun 已提交
30 31
	}
}