当前位置:网站首页>关于json转换器缺失的问题,报错内容:No converter found for return value of type
关于json转换器缺失的问题,报错内容:No converter found for return value of type
2022-08-10 10:07:00 【51CTO】
<此博客只为自己学习记录,解决方案是综合了网上各种解决思路和方法,最后实践加以解决后,作为备忘录的用途。>
报错内容如下:
nested exception is java.lang.IllegalArgumentException: No converter found for return value of type: class java.XXX.XXX
直接不废话, 出现这个问题的原因可能包含以下两个:
①springMVC的配置文件
dispatcherServlet-servlet.xml
里面没有对json转换器的配置信息。
②json的三个jar包导入
①的解决方案,在dispatcherServlet-servlet.xml
②的解决方案: 安装上面提到的jar包,下载导入即可。 maven项目就直接复制粘贴在pom.xml文件里面即可。
边栏推荐
- 俄罗斯宣布临时禁止进口摩尔多瓦植物产品
- Plot temperature curves; QChart,
- 【C语言】头文件#include <conio.h>,conio是Console Input/Output(控制台输入输出)
- ESP8266 教程2 — 烧录AT固件
- [Internet of Things Architecture] The most suitable open source database for the Internet of Things
- 反射效率为什么低?
- VBA:获取指定数值在指定一维数组中的位置
- LeetCode Algorithm 914. 卡牌分组
- 消息队列概述
- 【STL】位图的介绍使用以及代码的模拟实现
猜你喜欢

Situation丨The intrusion of hackers intensifies, and the shooting range sets up a "defense shield" for network security

大连理工&鹏城&UAE提出用于伪装目标检测的混合尺度三重网络ZoomNet,性能SOTA!

【物联网架构】最适合物联网的开源数据库

Lasso regression (Stata)

【数据架构】概念数据模型和逻辑数据模型有什么区别

CatchAdmin实战教程(四)Table组件之自定义基础页面

Lasso回归(Stata)

win下的开发环境变量记录

在兄弟连战狼班参加PHP培训做行业领先人才

绘制温度曲线图;QChart,
随机推荐
Behind iFLYTEK's translation machine stealing the spotlight, cross-language communication has entered a new era
Techches Transformer the join wisdom source the author cao, visual basic model study
[Internet of Things Architecture] The most suitable open source database for the Internet of Things
CatchAdmin实战教程(四)Table组件之自定义基础页面
lua初学
IDEA中xml文件头报错:URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
[C language] Floating point number rounding
14 high-frequency handwritten JS interview questions and answers to consolidate your JS foundation
「应用架构」TOGAF建模:企业可管理性图
The Generation of Matlab Symbolic Functions and the Calculation of Its Function Values
VBA: Inputbox Function and Inputbox Method
「数据架构」:主数据管理(MDM)对我的行业有什么帮助?
How to understand the difference between BIO, NIO, and AIO
「业务架构」TOGAF建模:业务功能分解图
database transaction
【数据架构】概念数据模型和逻辑数据模型有什么区别
杭电多校七 1008-Triangle Game(博弈)
VBA: 采用Combox控件实现二级下拉菜单功能
用.bat文件做Airtest脚本的多设备批量运行
数据库事务