学籍searchStudentName模块设计:函数使用:HttpServletRequest的getSession方法和setAttribute方法。实现逻辑:从前端传入查询的学生名字将其存入session中以便后续的selectStudent模块中使用。selectStudent模块设计:函数使用:HttpServletRequest的getSession方法和getAttribute方法以及
searchStudentName模块:
- 前端传入查询的学生名字
- 将学生名字存入session中
selectStudent模块:
- 从session中取出查询的学生名字
- 调用studentService中的findByName()方法进行查询
- 利用PageHelper插件进行分页处理
- 将查询结果封装到PageInfo对象中
- 在前端页面进行展示
原文地址: https://www.cveoy.top/t/topic/hjNy 著作权归作者所有。请勿转载和采集!