2012-11-21 3 views
1

내 질문에이 부분은 one과 매우 비슷합니다.봄 3.0.3 mvc : SAXParseException 리소스 :

다음

내 MyApp를-servlet.xml 파일입니다 :-(그럼에도 불구하고, 나는 실수를 찾을 수 없습니다. 나는 XML을 여러 번, this 질문에 언급조차 답을 체크 한

<?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:p="http://www.springframework.org/schema/p" 
    xmlns:mvc="http://www.springframework.org/schema/mvc" 
    xmlns:context="http://www.springframework.org/schema/context" 
    xsi:schemaLocation=" 
http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
http://www.springframework.org/schema/mvc 
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd 
http://www.springframework.org/schema/context 
http://www.springframework.org/schema/context/spring-context-3.0.xsd"> 

    <context:component-scan base-package="de.myapp.controller" /> 

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

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

</beans> 

나는 아직도 Line 15 in XML document from ServletContext resource [/WEB-INF/myapp-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'.를 얻을 수

답변

0

이 기능은 버전 3.0.4부터 사용할 수 있기 때문에> 3.0.3 버전 만 사용하십시오! 3.2 버전에서 제 질문에서 참조한 설명을 시도했는데 완벽하게 작동합니다!