Я получаю следующее исключение org.springframework.web.client.HttpClientErrorException: 400 Bad Request
Spring получить за объект давая 400 ошибки
это заявление final ResponseEntity<String> entity = restTemplate.getForEntity("http://localhost:12001/api/profiles/bymsisdn/0747894146", String.class);
Но я получаю успешный ответ, используя локон URL -X GET «http://localhost:8001/api/profiles/bymsisdn/0747894146»
Дополнительные примечания: resttemplate = new RestTemplate(); // No Headers or extra convertors added as I think it's not required because using curl works fine
этот ответ может помочь; http://stackoverflow.com/questions/22826887/spring-resttemplate-http-post-with-parameters-cause-400-bad-request-error – erolkaya84