解决No mapping found for HTTP request with URI [/crud/getAllBooks] in DispatcherServlet with name ...
报错信息如下:
No mapping found for HTTP request with URI [/crud/getAllBooks] in DispatcherServlet with name 'springmvc'
排除请求拼写无误之后,其根本原因是在Spring MVC的配置文件中少了这么一句话:
<!--用于打开注解驱动,针对@RequestMapping注解生效-->...
原创
2018-09-28 16:48:48 ·
896 阅读 ·
0 评论