SpringMVC- No mapping found for HTTP request with URI报错

问题描述:
警告: No mapping found for HTTP request with URI [/SpringMVCTest2/hello] in DispatcherServlet with name 'HelloWeb'

检查访问的url是否正确
http://localhost:8080/hello

或:
http://localhost:8080/{projectName}/hello

确定url没有问题,可以再检查web.xml中url-parrern配置的路径是否有问题

一般报这个错,都是访问url的路径不对。

你可能感兴趣的:(SpringMVC- No mapping found for HTTP request with URI报错)