would dispatch back to the current handler URL [/updateh] again. Check your

时间:2024-04-09 13:37:43

错误页面提示:
would dispatch back to the current handler URL [/deleteh] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
would dispatch back to the current handler URL [/updateh] again. Check your

解决方法:

将控制器里面的controller注解换成RestController就可以了。

would dispatch back to the current handler URL [/updateh] again. Check your

即上图转换成下图:

would dispatch back to the current handler URL [/updateh] again. Check your

这样就解决了,如果不改成RestController,虽然浏览器上会报错,但是数据库里面的相关操作还是实现了的。