You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Spring MVC基础项目404错误排查求助

Spring MVC 6.0.5 + Tomcat 9.0.73 404错误求助

我正在学习Java,跟着教程搭建一个包含web.xml、pom.xml、applicationContextMVC.xml、JSP文件、Controller类及HTML视图的「Hello World」基础项目时,遭遇404错误,错误详情:

The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

已经尝试查阅资料、请教Java领域从业者,但问题始终无法解决。项目环境信息:

  • Spring相关依赖版本:spring-webmvc、spring-web、spring-context、spring-core 6.0.5
  • 构建工具:Maven
  • 应用服务器:Tomcat 9.0.73
  • JDK版本:17

我怀疑问题根源在Tomcat配置或maven-war-plugin上,相关项目截图已准备。希望能得到针对性的排查建议或解决方案。

内容的提问来源于stack exchange,提问作者Lenny

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.30 01:04:58