spring - HTTP 状态 404-未找到

标签 spring tomcat http-status-code-404

<分区>

哟,我正在构建我的第一个 Spring Web 应用程序。 当我尝试运行它(在服务器上)时,这是响应

TTP 状态 404 – 未找到

类型状态报告

消息/HelloWorld/

描述源服务器未找到目标资源的当前表示或不愿透露存在的表示。

层次结构
enter image description here

网络.xml enter image description here

dispatcher-servlet.xml enter image description here

helloworld.jsp enter image description here

Controller enter image description here

最佳答案

未找到您从浏览器请求的页面,因此您需要在以下模式中添加 url: localhost:(端口号)/项目名称/( Controller 请求映射)/(方法请求映射)

关于spring - HTTP 状态 404-未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47349560/

相关文章:

wcf - 我可以使用独立的WCF Web服务更改错误页面(404)吗?

python - 为什么 python 请求会出现 404 错误?

iis - LESS 文件无法加载 (404)

Java -> Kotlin。数据类转换模式

java - 从外部 Tomcat 目录读取可重新加载的 xml 文件

spring - 为单个 Spring Boot 实例配置多个模板解析器

tomcat - 如何在Tomcat <Context/>节点下制作Railo/OpenBD进程文件?

tomcat - JSF2.0 + Richfaces 3.3.3, jsp not found 报错

java - 表达式执行 Spring 方面

spring - 带有 Spring Security 的 Thymeleaf - 如何检查用户是否已登录?