package com.hao.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.hao.entity.Student;
import com.hao.mappers.StudentMapper;
@Controller
@RequestMapping("student")
public class StudentController {
@Autowired
StudentMapper studentMapper;
@RequestMapping("list")
public ModelAndView queryStudent(Integer pageNum,Student student) {
ModelAndView mv = new ModelAndView();
List<Student> stuList = studentMapper.queryStudentList();
mv.addObject("stuList", stuList);
return mv;
}
}
靠乞求得到的,都是别人不需要的。
《猎场》