package com.controller.admin; 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.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import com.po.Auser; import com.service.admin.AdminService; @Controller public class AdminController { @Autowired private AdminService adminService; @RequestMapping("/admin") public String toLogin(@ModelAttribute Auser auser) { return "admin/login"; } @RequestMapping("/admin/login") public String login(@ModelAttribute Auser auser, Model model, HttpSession session) { return adminService.login(auser, model, session); } @RequestMapping("/exit") public String exit(@ModelAttribute Auser auser,HttpSession session) { session.invalidate(); return "admin/login"; } }
最近下载更多
ziwng5211314 LV8
前天
xiongM LV3
4月1日
mds123456 LV2
2023年11月5日
wuying8208 LV15
2023年9月3日
lilily1119 LV4
2023年4月28日
answer123 LV8
2023年3月28日
jgkghj LV2
2023年3月20日
xmx123 LV5
2023年2月26日
ningningnn LV3
2023年2月23日
yunYUN123 LV1
2023年2月20日
最近浏览更多
ziwng5211314 LV8
前天
alljavaers
前天
暂无贡献等级
mzqnxyh LV2
4月15日
wddq123
4月2日
暂无贡献等级
xiongM LV3
4月1日
微信网友_6927932988952576 LV12
3月30日
lanmiu
3月24日
暂无贡献等级
微信网友_6427471221870592 LV2
3月10日
晴曛 LV6
3月10日
光圈3661
3月1日
暂无贡献等级