0
netflixクライアントを使用してPOSTリクエストを送信すると、サービスコンシューマにヒットするとjsonプロパティは空白になります。netflix feign client - RequestMethod.POSTがサービスに空のjsonオブジェクトを送信する
は、以下の私のインターフェイス作品identifyTagsTest
@FeignClient(name = "NLPService", configuration = FooConfiguration.class)
public interface NLPServiceConsumer extends TempInterface {
}
public interface TempInterface {
@RequestMapping("/greeting")
String greeting();
@RequestMapping(method = RequestMethod.POST,value="/nlp",
consumes="application/json",produces="application/json")
NLPResponse identifyTags(NLPInputToBeTransformed nlpInputToBeTransformed);
@RequestMapping(method = RequestMethod.GET,value="/nlpGetMethod",
produces="application/json")
NLPResponse identifyTagsTest();
}
方法であると私は正常な応答を取得することができています。 このメソッドは入力なしのGETメソッドです
エンドポイントサービスの実装時にオブジェクトをパラメータとして渡してPOSTメソッドを実行しようとすると、オブジェクト属性はnullになります。
誰もこのような問題に直面しましたか?私の設定に間違いはありますか?