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 4 Thymeleaf 3 HTTP状态404-未找到资源_Spring_Spring Mvc_Thymeleaf - Fatal编程技术网

Spring MVC 4 Thymeleaf 3 HTTP状态404-未找到资源

Spring MVC 4 Thymeleaf 3 HTTP状态404-未找到资源,spring,spring-mvc,thymeleaf,Spring,Spring Mvc,Thymeleaf,我在stackoverflow中找到了标题类似的帖子,但这些帖子的文件中缺少了一些配置或陷阱。我之所以发布这篇文章,是因为我已经做了所有可能的更正,但仍然无法完成这项工作。我的代码如下: web.xml 上下文配置位置 /WEB-INF/dispatcher-servlet.xml org.springframework.web.context.ContextLoaderListener 调度员 org.springframework.web.servlet.DispatcherServlet

我在stackoverflow中找到了标题类似的帖子,但这些帖子的文件中缺少了一些配置或陷阱。我之所以发布这篇文章,是因为我已经做了所有可能的更正,但仍然无法完成这项工作。我的代码如下:

web.xml

上下文配置位置
/WEB-INF/dispatcher-servlet.xml
org.springframework.web.context.ContextLoaderListener
调度员
org.springframework.web.servlet.DispatcherServlet
1.
调度员
/
index.html
home.html
default.html

我最近写了一篇博客文章,介绍如何在不需要Web.xml和基于Java的配置的情况下将Spring MVC应用程序部署到Tomcat。您可以尝试删除组件扫描基本包中的。*我不是在寻找基于java的配置,我只是想在我的示例中找出它失败的原因。hy,您得到问题的答案了吗?我也面临着同样的问题。不,直到现在还没有人回答。我最近写了一篇博客文章,介绍如何在不需要Web.xml和基于Java的配置的情况下将Spring MVC应用程序部署到Tomcat。您可以尝试删除组件扫描基本包中的。*我不是在寻找基于java的配置,我只是想在我的示例中找出它失败的原因。hy,您得到问题的答案了吗?我也面临同样的问题不,直到现在还没有人回答。