springboot错误 java.lang.IllegalArgumentException:No converter found for return value of type
2017-12-08 15:09
961 查看
出现
因为maven依赖的jar包没有json相关的jar包,需要引入相关json的jar包,如下图:
jackson-core jackson-databind jackson-annotation
一般spring boot 会自动管理包的版本,但是如果jar包有问题那么会出现运行失败,或者编译不通过。
若有jackson-core jackson-databind jackson-annotation的jar包,却仍出现上述问题那么就是jar包不完整。解决如下:
检查maven下载的jar包中是否包含.jar.lastUpdated,将其删除,并update工程即可。
springboot java.lang.IllegalArgumentException: No converter found for return value of type
因为maven依赖的jar包没有json相关的jar包,需要引入相关json的jar包,如下图:jackson-core jackson-databind jackson-annotation
一般spring boot 会自动管理包的版本,但是如果jar包有问题那么会出现运行失败,或者编译不通过。
若有jackson-core jackson-databind jackson-annotation的jar包,却仍出现上述问题那么就是jar包不完整。解决如下:
检查maven下载的jar包中是否包含.jar.lastUpdated,将其删除,并update工程即可。
相关文章推荐
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- 170616、解决 java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.ArrayList
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- 170524、java.lang.IllegalArgumentException: No converter found for return value of type异常解决
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- java.lang.IllegalArgumentException: No converter found for return value of type: class
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- 【已解决】java.lang.IllegalArgumentException: No converter found for return value of type: class java.uti
- java.lang.IllegalArgumentException: No converter found for return value of type
- java.lang.IllegalArgumentException: No converter found for return value of type:class 解决方案
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- 解决java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.ArrayList的问题
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- java.lang.IllegalArgumentException: No converter found for return value of type: class Person