使用IDEA建立spring mvc项目,在运行项目时,打开地址时,报如下错误
HTTP Status 404 – 未找到
Type Status Report
消息 Not found
描述 The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/9.0.21
解决办法:
在设置Tomcat服务时,要将下面红色圈内的内容设为空: