package com.order.controller; import com.order.service.OrderService; 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 javax.servlet.http.HttpSession; @Controller public class loginController { @Autowired private OrderService service; @RequestMapping("/login") public String login(String name, String password, HttpSession session, Model model){ System.out.println("俺来了"); if(name.equals("afeng321")&&password.equals("123456")){ session.setAttribute("name",name); return "/WEB-INF/index.jsp"; } if(name.equals("zhanglong")&&password.equals("123456")){ session.setAttribute("name",name); return "/WEB-INF/index.jsp"; } if(name.equals("gaozengliang")&&password.equals("123456")){ session.setAttribute("name",name); return "/WEB-INF/index.jsp"; } return "redirect:/login.jsp"; } @RequestMapping("/test") public String test(){ return "/WEB-INF/index.jsp"; } }
最近下载更多
微信网友_6802139027345408 LV2
2023年12月31日
houhanlin33 LV3
2023年12月28日
0o0o0o LV2
2023年6月12日
6389181 LV7
2023年6月1日
苏拉德666 LV4
2023年5月15日
LCL10086 LV3
2022年12月29日
hihhhh LV6
2022年12月25日
短巷拥猫 LV11
2022年12月10日
renyuan LV9
2022年12月7日
mikyfx LV4
2022年11月30日
最近浏览更多
微信网友_6966111887429632 LV1
4月25日
ChenQAQ1
4月21日
暂无贡献等级
2131234536546 LV7
3月31日
quartz LV7
3月13日
陈鑫陈鑫陈鑫
2月23日
暂无贡献等级
廖业贵 LV18
2月23日
李朝磊 LV18
2月2日
本是12311
1月2日
暂无贡献等级
微信网友_6802139027345408 LV2
2023年12月31日
houhanlin33 LV3
2023年12月28日