Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring mvc 找不到Eclipse 404错误页_Spring Mvc - Fatal编程技术网

Spring mvc 找不到Eclipse 404错误页

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. 在我的表单操作页面中,我已经写了 这是我

我正在尝试SpringMVC程序,这是我的目录结构,当我运行这个程序时,它工作正常,当我按下enter键并将它引导到下一页,即操作页

它显示了这个页面

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。

这是完整的程序。。这是我修改之前的代码,所以请告诉我关于这方面的建议。它有什么问题吗?我已经回答了你的问题,请看一下。