提交 012c9c1c 编写于 作者: 爱吃血肠's avatar 爱吃血肠

优化代码格式增加必要注释

上级 9f7a636b
......@@ -4,28 +4,38 @@ package com.yingjun.ssm.web;
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;
/**
* 用户
* @author 包
*/
@Controller
@RequestMapping("/user")
public class UserController {
private final Logger LOG = LoggerFactory.getLogger(this.getClass());
/**
* 用户登录
* @return
*/
@RequestMapping(value = "/userLogin", method = RequestMethod.GET)
public String userLogin(Model model, Integer offset, Integer limit) {
LOG.info("invoke----------/user/list");
public String userLogin() {
LOG.info("用户登录");
return "/user/userLogin";
}
/**
* 用户注册
* @return
*/
@RequestMapping(value = "/userRegister", method = RequestMethod.GET)
public String userRegister(Model model, Integer offset, Integer limit) {
LOG.info("invoke----------/user/list");
public String userRegister() {
LOG.info("用户注册");
return "/user/userResgiter";
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册