关于前后台传值:
controller层:
public ModelAndView goAdd(HeheEntity hehe, HttpServletRequest req) {
String id = req.getParameter("id");//拿到前台的数据id
String name = req.getParameter("gg");//拿到前台的数据gg
System.out.println(name);
String Sql = "select gg from hehe ";
List<String> heheList = systemService.findListbySql(Sql);
req.setAttribute("hehePage", heheList); //拿到数据库的信息