解决nested exception is java.lang.IllegalArgumentException: No converter found for return value of typ

@SpringMVC
#hahahahha

解决nested exception is java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.ArrayList错误

这个问题困扰了我一天,返回String类型是好使的,返回集合或对象是就报错了,百度上大部分回答是springMVC所依赖的包没有导入,但导入所依懒的包还是报错,看下面我是怎么解决的吧
解决nested exception is java.lang.IllegalArgumentException: No converter found for return value of typ
大部分情况是我们导入依懒的包是和其他包冲突了
可以在pom.xml右键—>Dingrams------>shou Dependencies中查看依懒包的关系
解决nested exception is java.lang.IllegalArgumentException: No converter found for return value of typ
解决nested exception is java.lang.IllegalArgumentException: No converter found for return value of typ
此时如果所依懒的包是有所冲突会显示出红线的地方,重新导入不冲突的包后,还需要进行一步操作
点击File---->Project Structure
解决nested exception is java.lang.IllegalArgumentException: No converter found for return value of typ
进入Artifacts ,找到自己项目对应的WEB-INF文件夹下的lib文件夹,将其删除,再重新点击右边SpringMvc重新导入
解决nested exception is java.lang.IllegalArgumentException: No converter found for return value of typ
解决nested exception is java.lang.IllegalArgumentException: No converter found for return value of typ
这样我的问题就解决了,希望能帮到你