首先从页面jsp跳转到通过controller层执行业务->service层->serviceImpl实现业务->mapper接口->XML中执行SQL再反过来返回值
注意:在controller层中我们要注解@Controller和@RequestMapping(value = "/student")注明请求Mapping
另外还要自动加载(@Autowired)Service
同样在serviceImpl中我们要注解@Service并自动加载Mapper类
记得在实现类后要返回相应的集合
最后就是Mapper.xml中写入SQL语句了