2012-01-31 9 views
1

私はこのエラーを避けることができません。 mvc xsdは正しいもので、resources要素が存在することを検証します。なぜ、この春の設定ファイルは、MVC解決しません:リソース要素をなぜこのスプリング設定ファイルはmvc:resources要素を解決しないのですか

SAXParseExceptionの:CVC-複雑-type.2.4.c:一致するワイルドカードは厳しいですが、何の宣言は、要素のために見つけることができない「MVC:リソースの

私は

<beans 
xmlns="http://www.springframework.org/schema/beans" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:p="http://www.springframework.org/schema/p" 
xmlns:context="http://www.springframework.org/schema/context" 
xmlns:mvc="http://www.springframework.org/schema/mvc" 
xmlns:task="http://www.springframework.org/schema/task" 
xsi:schemaLocation=" 
http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
http://www.springframework.org/schema/context 
http://www.springframework.org/schema/context/spring-context-3.0.xsd 
http://www.springframework.org/schema/task 
http://www.springframework.org/schema/task/spring-task-3.0.xsd 
http://www.springframework.org/schema/mvc 
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"> 

    <context:component-scan annotation-config="true" base-package="com.auto"/> 

    <mvc:annotation-driven /> 
    <mvc:view-controller path="/" view-name="index"/> 

    <mvc:resources location="/resources/" mapping="/resources/**"/> 

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

答えて

0

がcontainig jarファイルがspring-mvc-3.0.xsdが展開されていることを確認しspringframeworkのV3.0.2を使用しています。 (私が正しく覚えていればspring-mvc.jarです)

関連する問題