当我尝试自动连接SpringRestTemplate时,我得到了以下错误:
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.web.client.RestTemplate] found for dependency: expected在注释驱动的环境中使用Spring4。" class="
我使用了springRestTemplate,并将其配置为使用spring。当我调试我的代码时,我发现Response对象确实包含准确的元数据(例如,页面和资源的数量)和响应头,但没有内容或链接。restTemplate;
public ResponseEntity<PagedResources<Event>> fetchEventsList() {
// acceptable>> existingConverters = re