DispatcherServlet.noHandlerFound No mapping

前后端的信息不一致

 

404页面指的是你的接口没有找到,你前端url写法/film/delete,并且你的后台方法注解最好@ResquestMapping(value = "/delete",method = RequestMethod.POST)这样写.

为啥你用@ResquestMapping没有method = RequestMethod.POST,没有这个默认为GET请求

正确用法:@ResquestMapping(value = "/delete",method = RequestMethod.POST)

试试这样应该就能找到了