src/controller/GuanliyuanController.java
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package controller;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import Pojo.Guanliyuan;
import service.GuanliyuanService;
@Controller
public class GuanliyuanController {
@Autowired
private GuanliyuanService guanliyuanService;
@RequestMapping("/login")
public String userList() throws Exception{
return "admin/login";
}
@RequestMapping("/bodyyemian")
public String bodyyemian() throws Exception{
return "admin/body";
}
@RequestMapping("/logincheck")
public String login(HttpServletRequest request,Model model,HttpSession httpSession) throws Exception{
String glyzhanghao = request.getParameter("glyzhanghao");
String glymima = request.getParameter("glymima");
ArrayList<Guanliyuan> admin1 = guanliyuanService.findguanliyuanzhanghao(glyzhanghao, glymima);
if (admin1 == null || admin1.size() == 0)
{
String error="error";
model.addAttribute("error", error);
return "admin/login";
}
else
{
Guanliyuan guanliyuan = new Guanliyuan();
guanliyuan.setGlyid(admin1.get(0).getGlyid());
guanliyuan.setGlyzhanghao(admin1.get(0).getGlyzhanghao());
guanliyuan.setGlymima(admin1.get(0).getGlymima());
httpSession.setAttribute("guanliyuan", guanliyuan);
return "admin/index";
}
后面还有 23 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。