J'essaie de mettre http: passerelle sortante dans une chaîne, mais a rencontré des exceptions à l'exécution, puis-je savoir que je peux mettre http passerelle sortante dans la chaîneEst-il possible de mettre une passerelle sortante HTTP en chaîne?
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: The 'request-channel' attribute isn't allowed for a nested (e.g. inside a <chain/>) endpoint element: 'http:outbound-gateway'.
mais quand je l'ai enlevé attribut-canal de demande », IDE m'a dit que c'est un attribut obligatoire.
voici ma configuration:
<int:chain input-channel="requestChannel"
output-channel="requestChannel2">
<http:outbound-gateway request-channel="requestChannel2" expected-response-type="java.lang.String"
url="http://localhost:8080/postService/postwithparm"
http-method="POST"
extract-request-payload="true">
</http:outbound-gateway>
</int:chain>