package com.lwh.controller;
import com.lwh.pojo.User;
import com.lwh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
@Controller
public class UserController {
@Autowired
UserService userService;
@RequestMapping("/login")
public String elogin(HttpServletRequest request){
String loginname = request.getParameter("name");
String loginpass = request.getParameter("password");
User user = new User();
user.setUsername(loginname);
user.setPassword(loginpass);
User userLogin = userService.getLogin(user);
if(userLogin!=null){
return "success";
}else{
return "error";
}
}
}
最近下载更多
微信网友_7512477797486592 LV1
5月23日
zhoubowen LV3
2024年12月29日
cnzy00 LV1
2024年12月11日
zczcccc LV1
2024年10月11日
sjsjsjjd LV1
2024年6月17日
xinleixie LV1
2024年6月13日
少时诵诗书dddddd LV2
2023年12月22日
GJZZHDFS LV2
2023年6月25日
微信网友_6515044842917888 LV1
2023年6月11日
buling- LV1
2023年6月8日

最近浏览
