Resttemplate GET Request with Custom Headers
问题 I need to send a GET request with a header: Content-Type: application/camiant-msr-v2.0+xml . I expect an XML response from the server. I tested the request and response with Postman and everything is good. But when I try to do it in Spring with RestTemplate , I always get a 400 bad request. The exceptions from spring are: Jul 09, 2016 12:53:38 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [dispatcherServlet] in context with path [/smp] threw