Spring, der statischen Inhalt mit mvc: resources bereitstellt, ungültiges xsd
Wie von @ empfohlhttp: //static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-static-resource Ich möchte @ verwend<mvc:resources>
für das Bereitstellen meines statischen Inhalts für den Frühling.
Ich habe das folgende XML ausprobiert, aber die .xsd-Datei enthält keine Deklaration für<mvc:resources>
und ich kann keine alternative .xsd finden. Ich kann den Eclipse-Fehler ignorieren, aber der Server wird aufgrund einer SAXParseException nicht gestartet.
Wo habe ich mich geirrt?
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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">
<mvc:resources mapping="/css/**" location="/css/"/>
</beans>