1
残りのテンプレートを使用してサービスを呼び出そうとしていますが、404エラーが表示されます。404 reststemplateから投稿を呼び出すとき
POSTです。メソッドのシグネチャは
String sendScreenAsPostcard(@RequestBody MultiValueMap<String, Object> params)
です。次のコードを使用してこれをresttemplateから呼び出すことにしています。
restTemplate.exchange(
"http://localhost:8080/sendScreeenAsPostCard",
HttpMethod.POST,
new HttpEntity<MultiValueMap<String, Object>>(parameters, headers),
String.class
).getBody()
私が間違っていることをアドバイスしてください。ありがとう。
sendScreeenAsPostCardとsendScreeenAsPostcard – Karussell