说明:在这里由于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>这个写错了。没有扫描到