0
Ich muss Kopfzeile von spring-module.xml hinzufügen. Ich bin unten Antwort bekommenSo fügen Sie eine neue Kopfzeile von spring-module.xml hinzu
headers:
file_name: sample.txt
content_type: text/plain
Payload: { "json":{ "type":"abcd","value":"1234" }}
Im Header ich wie ein anderes Feld hinzufügen müssen „Zeit: Zeitstempel“ diese Header wir nur aus feder module.xml hinzufügen sollten. Erwartet Header wie unten.
headers:
file_name: sample.txt
content_type: text/plain
time:timestamp
unten ist mein feder module.xml Datei:
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/integration"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">
<channel id="input"/>
<transformer input-channel="input" output-channel="output">
<beans:bean class="com.sample.PayloadValidation" >
</beans:bean>
</transformer>
<channel id="output"/>
</beans:beans>
Was sind die Änderungen, die ich brauche sind wie "Zeit" aus der Feder-module.xml eine weitere Header zu tun hinzuzufügen ..?
Ja, Danke für Ihre Antwort. Basierend darauf kann ich Header hinzufügen. Noch einmal vielen Dank. –