springboot错误 java.lang.IllegalArgumentException:No converter found for return value of type

出现

springboot java.lang.IllegalArgumentException: No converter found for return value of type




因为maven依赖的jar包没有json相关的jar包,需要引入相关json的jar包,如下图:


springboot错误 java.lang.IllegalArgumentException:No converter found for return value of type
jackson-core   jackson-databind   jackson-annotation

一般spring boot 会自动管理包的版本,但是如果jar包有问题那么会出现运行失败,或者编译不通过。
若有jackson-core   jackson-databind   jackson-annotation的jar包,却仍出现上述问题那么就是jar包不完整。解决如下:


检查maven下载的jar包中是否包含.jar.lastUpdated,将其删除,并update工程即可。