Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.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
Java Spring MVC-找不到任何声明_Java_Spring_Maven_Spring Mvc - Fatal编程技术网

Java Spring MVC-找不到任何声明

Java Spring MVC-找不到任何声明,java,spring,maven,spring-mvc,Java,Spring,Maven,Spring Mvc,我完全是一个傻瓜,我正在努力遵循春季初学者指南。在DispatcherServlet声明(名为DefaulServlet)中,我得到以下错误:cvc复杂类型。2.4.c:匹配通配符是严格的,但找不到元素上下文组件扫描的声明 xml文件中的代码是 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="ht

我完全是一个傻瓜,我正在努力遵循春季初学者指南。在DispatcherServlet声明(名为DefaulServlet)中,我得到以下错误:cvc复杂类型。2.4.c:匹配通配符是严格的,但找不到元素上下文组件扫描的声明

xml文件中的代码是

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xmlns:context="http://www.spingframework.org/schema/context"   
       xsi:schemaLocation="http://www.springframework.org/schema/beans 
                           http://www.springframework.org/schema/beans/spring-beans.xsd 
                           http://www.springframework.org/schema/context 
                           http://www.springframework.org/schema/context/spring-context-4.3.xsd 
                           http://www.springframework.org/schema/mvc
                           http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd">
    <mvc:annotation-driven />
    <context:component-scan base-package="com.packt.webstore" />

 <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="prefix" value="/WEB-INF/jsp/" />
    <property name="suffix" value=".jsp" />
    </bean>
</beans>

我真的被困在这里了。请帮帮我。

我正在使用与您相同版本的spring,并且遇到了相同的问题。经过长时间的研究,我发现:

对不起,我的名声不好,我不能把代码写进文本。 致以最诚挚的问候。

嘿,请在这里发布您的帖子,并将实际代码显示为文本,而不是屏幕截图。其他人无法从您的图像复制和粘贴。详情请参阅。请阅读以了解如何格式化您的代码。非常感谢。
spring-webmvc-4.3.3.RELEASE
spring-aop-4.3.3.RELEASE
spring-beans-4.3.3.RELEASE
spring-context-4.3.3.RELEASE
spring-core-4.3.3.RELEASE
commons-logging-1.2
spring-expression-4.3.3.RELEASE
spring-web-4.3.3.RELEASE
jstl-1.2
javax.servlet-api-3.1.0