关于没有扫描到的报错形式

来源:互联网 发布:s5支持4g网络吗 编辑:程序博客网 时间:2024/05/16 23:36

说明:在这里由于springmvc扫描不到需要的包接下来

警告: No mapping found for HTTP request with URI [/springmvc/user/addUser] in DispatcherServlet with name 'springMVC'



解决的方法如下:

<context:component-scan base-package="com.zpl.controller.*"></context:component-scan>这个写错了。没有扫描到




0 0