Java 我想启用矩阵变量,但它会显示消息
我可以确认Spring3.2下的正确写入是Java 我想启用矩阵变量,但它会显示消息,java,spring-mvc,Java,Spring Mvc,我可以确认Spring3.2下的正确写入是 下面是SpringFramework 3.2.4的一个工作xml文件的摘录 org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 18 in XML document from ServletContext resource [/WEB-INF/appDispatcher-servlet.xml] is invalid; nested exception
下面是SpringFramework 3.2.4的一个工作xml文件的摘录
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 18 in XML document from ServletContext resource [/WEB-INF/appDispatcher-servlet.xml] is invalid;
nested exception is org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 59; cvc-complex-type.3.2.2: Attribute 'enable-matrix-variables' is not allowed to appear in element 'mvc:annotation-driven'.
注意对3.2模式的引用您使用的是哪种Spring框架版本?@Serge Ballesta“Spring 3.2.4”“请给出ans”,它在3.2中看起来是这样的,它写入了
(但我无法测试…)不,不工作,我遇到了相同的错误
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 18 in XML document from ServletContext resource [/WEB-INF/appDispatcher-servlet.xml] is invalid;
nested exception is org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 59; cvc-complex-type.3.2.2: Attribute 'enable-matrix-variables' is not allowed to appear in element 'mvc:annotation-driven'.
<?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:util="http://www.springframework.org/schema/util"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:c="http://www.springframework.org/schema/c"
xmlns:p="http://www.springframework.org/schema/p"
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.2.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.2.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd">
<mvc:annotation-driven enableMatrixVariables="true" >