我试图在控制器中的方法中使用这样的HashMap返回一个json @RequestMapping(value = "/user",method = RequestMethod.GETorg.springframework.http.converter.HttpMessageNotWritableException: No converter found for return value of type: class java.util.HashMap
在我的JAVA spring boot项目中,我尝试发送一个JSONArray,但是当我向postman发出请求时,我得到了以下错误:下面是我的代码:
public ResponseEntity<JSONArray> getDiscussions(Authentication authentication) {
根据REST API Spring教程,我正在编写一个简单的。在我的本地开发机器(Ubuntu 15.04和Windows 8.1)上,一切都很有魅力。我有一个旧的32-bit Ubuntu 12.04 LTS服务器,我想在它上部署我的REST服务。: No converter found for return value of type: class java.util.LinkedHashMap
整个堆栈跟踪都是发布的。我研究了一些提到这个错误的答案,但是这些似乎不适用于我的