This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
RestTemplate.postForObject を介して送信されるオブジェクトは、サーバー側のオブジェクトのタイプと正確に一致する必要がありますか? RestTemplate を介して送信される特定のオブジェクトの基本クラスを受け入れるサーバー側 API をサーバーに記述しましたが、サーバーから 400 Bad Response を受け取りました。オブジェクトのクラスが両側で同じであれば、問題なく動作します。