Spring 4.0.0 basic authentication with RestTemplate

前端 未结 6 1731
梦谈多话
梦谈多话 2020-12-13 10:37

I am currently working on integration of a third party application with our local reporting system. I would like to implement REST calls with basic authentication but facing

6条回答
  •  鱼传尺愫
    2020-12-13 11:09

    Why not check the Spring 4 APIs to see which classes implement the required interface, namely ClientHttpRequestFactory?

    As you'll see from the Javadoc, most likely you want HttpComponentsClientHttpRequestFactory, which uses the client from Apache's HttpComponents, the successor to the old commons HttpClient.

提交回复
热议问题