Spring mvc 找不到Eclipse 404错误页
我正在尝试SpringMVC程序,这是我的目录结构,当我运行这个程序时,它工作正常,当我按下enter键并将它引导到下一页,即操作页 它显示了这个页面Spring mvc 找不到Eclipse 404错误页,spring-mvc,Spring Mvc,我正在尝试SpringMVC程序,这是我的目录结构,当我运行这个程序时,它工作正常,当我按下enter键并将它引导到下一页,即操作页 它显示了这个页面 HTTP Status 404 - /MVC_HelloWorld/hello.ap type Status report message /MVC_HelloWorld/hello.ap description The requested resource is not available. 在我的表单操作页面中,我已经写了 这是我
HTTP Status 404 - /MVC_HelloWorld/hello.ap
type Status report
message /MVC_HelloWorld/hello.ap
description The requested resource is not available.
在我的表单操作页面中,我已经写了
这是我的inde.jsp页面
<h1> Hello World</h1>
<form action="./hello.ap">
NAME: <input type="text" name="name">
<input type="Submit" value="Say Hello">
</form>
你好,世界
姓名:
路径或目录结构有问题吗?我看到的目录结构是正确的。但是,您在表单中设置的操作应该只是“hello.ap”之类的文本,它不应该包括/或./try with hello.ap,并将控制器中的requestMaping命名为hello.ap。这是完整的程序。。这是我修改之前的代码,所以请告诉我关于这方面的建议。它有什么问题吗?我已经回答了你的问题,请看一下。