Ich bemerkte, dass Frühling Integration verwenden, um ein Attribut "Pfad" im Elemente "inbound-Gateway", wie in der Dokumentation berichten:Frühling Integration HTTP: inkonsistentes Attribut "Pfad" für das Element "inbound-Gateway"
http://docs.spring.io/spring-integration/reference/html/http.html#_request_mapping_support
Aber in der XSD von HTTP Integration der "Pfad" Attribut nicht existiert:
http://www.springframework.org/schema/integration/http/spring-integration-http.xsd
<xsd:element name="inbound-gateway">
<xsd:complexType>
<xsd:annotation>
<xsd:documentation>Defines an inbound HTTP-based Messaging Gateway.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="gatewayType">
<xsd:attribute name="name" type="xsd:string"/>
<xsd:attribute name="extract-reply-payload" type="xsd:string" default="true"/>
<xsd:attribute name="supported-methods" type="xsd:string"/>
<xsd:attribute name="view" type="xsd:string">
<xsd:annotation>
<xsd:appinfo>
<tool:annotation kind="ref">
<tool:expected-type type="org.springframework.web.servlet.View"/>
</tool:annotation>
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="request-mapper" type="xsd:string">
<xsd:annotation>
<xsd:appinfo>
<tool:annotation kind="ref">
<tool:expected-type type="org.springframework.integration.http.InboundRequestMapper"/>
</tool:annotation>
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="request-key" type="xsd:string"/>
<xsd:attribute name="reply-key" type="xsd:string"/>
<xsd:attribute name="reply-timeout" type="xsd:string"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
Dies scheint die Liste der "akzeptiert" werden Attribute:
name
extract-reply-payload
supported-methods
view
request-mapper
request-key
reply-key
reply-timeout
Das Attribut "Pfad" ist in der Definition nicht vorhanden.
Der Effekt ist, dass ich zu Beginn der Anwendung einen Fehler haben:
org.xml.sax.SAXParseException; lineNumber: 71; columnNumber: 53; cvc-complex-type.3.2.2: Attribute "path" is not allowed to appear in element "int-http:inbound-gateway".
Dies ist die „inkriminierten“ Teil der Konfiguration:
<int-http:inbound-gateway request-channel="receiveChannel"
path="/receiveGateway"
supported-methods="POST"/>
Diese inkonsistent ist! Vielleicht fehlt etwas?