后端: @RequestMapping("/account/delete")
public String delete(Integer aid) throws IOException { //存数据, Model对象
// 调用service的方法
accountService.delete(aid);
return "redirect:/account/findAll";
}
能走进代码里吗,看路径是请求delete方法报的错。听你的描述像是return 的时候报的错
路径没写对吧 controller上的路径拼接上去没有
前端参数是这个account/delete?aid=${account.aid}
你看下进到删除的方法没
还有你最后重定向到/account/findAll,这个地址有么
检查下请求路径中的上下文路径是否正确吧,如果正确的话重定向的时候加上上下文路径试试