做了一个修改学校的模块,如下,大家帮忙看看哪里写错了。
SchoolAction.java

SchoolService.java


SchoolDao.java

updateschool.jsp

------解决方案--------------------
1.首先你的findSchoolById找到的不止一条数据,才会报ArrayList can not be cast to SchoolInfo
2.第二你的Controller接收的参数不对
@RequestMapping..
public String updateSchool(SchoolInfo schoolInfo,HttpServletRequest request){}