我正在使用grails 2.4.5和rest clinet插件2.1.1。较早版本的其余客户端(即2.0.0)在下面的代码段中解析了JSONArray响应。
RestBuilder rest = new RestBuilder()
response = rest.get(actionUrl) {
auth username, password
accept DTO[].class , MediaType.APPLICATION_JSON_VALUE
}
但是升级到2.1.1后,出现以下错误:
Could not extract response: no suitable HttpMessageConverter found for response type
这里可能是什么问题?