postメソッドが呼び出されますが、プロファイルが空です。このアプローチの何が問題になっていますか?RestTemplateを使用するには、@ Requestbodyを使用する必要がありますか?
Profile profile = new Profile();
profile.setEmail(email);
String response = restTemplate.postForObject("http://localhost:8080/user/", profile, String.class);
@RequestMapping(value = "/", method = RequestMethod.POST)
public @ResponseBody
Object postUser(@Valid Profile profile, BindingResult bindingResult, HttpServletResponse response) {
//Profile is null
return profile;
}