2016-12-07 5 views
1

Kann jemand identifizieren, was mit der Namespacedeklaration unten falsch ist? Ich habe alle Namespaces erwähnt und Hinweise auf die Schemadateien gegeben. Nicht sicher, was sonst noch fehlt.Stuck mit springcontext.xml

Hier ist mein SpringContext.xml

<?xml version="1.0" encoding="UTF-8"?> 
<beans:beans xmlns="http://www.springframework.org/schema/mvc" 
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
       xmlns:beans="http://www.springframework.org/schema/beans" 
      xmlns:context="http://www.springframework.org/schema/context" 
      xsi:schemaLocation="http://www.springframework.org/schema/mvc     http://www.springframework.org/schema/mvc/spring-mvc.xsd       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd 
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> 
<annotation-driven /> 
<beans:bean id="handlerMapping" class="com.common.spring.RequestMapping"> 
    <property name="alwaysUseFullPath" value="true"/> 
</beans:bean> 
    <context:component-scan base-package="com.controller" /> 
</beans:beans> 

Sie die unten Fehler verursacht.

Der passende Platzhalter ist strikt, aber für das Element 'property' kann keine Deklaration gefunden werden. bei org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions (XmlBeanDefinitionReader.java:399)

+0

Ausnahme es geht nicht davon erzählt zu Siehe 'Eigenschaft' in der Bean Deklaration – AdamSkywalker

Antwort

1

Änderung

<property name="alwaysUseFullPath" value="true"/> 

zu

<beans:property name="alwaysUseFullPath" value="true"/>