接口的使用
org.springframework.web.client.RestOperations
使用RestOperations的程序包 程序包 说明 org.springframework.web.client Core package of the client-side web support.org.springframework.web.socket.sockjs.client SockJS client implementation ofWebSocketClient
.org.springframework.web.client中RestOperations的使用
实现RestOperations的org.springframework.web.client中的类 修饰符和类型 类 说明 class
RestTemplate
Synchronous client to perform HTTP requests, exposing a simple, template method API over underlying HTTP client libraries such as the JDKHttpURLConnection
, Apache HttpComponents, and others.返回RestOperations的org.springframework.web.client中的方法 修饰符和类型 方法 说明 RestOperations
AsyncRestOperations. getRestOperations()
已过时。Expose the synchronous Spring RestTemplate to allow synchronous invocation.RestOperations
AsyncRestTemplate. getRestOperations()
已过时。org.springframework.web.socket.sockjs.client中RestOperations的使用
返回RestOperations的org.springframework.web.socket.sockjs.client中的方法 修饰符和类型 方法 说明 RestOperations
RestTemplateXhrTransport. getRestTemplate()
Return the configuredRestTemplate
.参数类型为RestOperations的org.springframework.web.socket.sockjs.client中的构造器 构造器 说明 RestTemplateXhrTransport(RestOperations restTemplate)