控制台报错:
七月 21, 2019 4:29:56 下午 org.springframework.web.servlet.PageNotFound noHandlerFound
警告: No mapping found for HTTP request with URI [/my-chapter16/fileUpload] in DispatcherServlet with name 'springmvc'
浏览器报错:
HTTP Status 404 – Not Found
Type Status Report
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/8.5.34
报错原因:
SpringMVC 配置文件里包扫描路径出错,包的名字和实际包的名字不相同。
解决办法:
把字母 “r” 去掉就可以了。