私はこのエラーを避けることができません。 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>
ありがとう@digitaljoelそれは – Byron
でした。私は数ヶ月前に私に噛み付いていたので、この問題を痛感していました。 – digitaljoel