当前位置:网站首页>Gson converts the entity class to JSON times declare multiple JSON fields named
Gson converts the entity class to JSON times declare multiple JSON fields named
2022-07-07 08:41:00 【coder_ monarch】
A problem I encountered when testing the project on the user server today , Log printing is :
java.lang.IllegalArgumentException:…declares multiple JSON fields named …
Use the same version locally jdk and tomcat, There is no error in running the project , Background query sql Get it to the local database and execute , There was no error .
I found many solutions online , Most of them say that the subclasses and superclasses of entity classes have the same attributes , But there is no inheritance of subclasses and parent classes in the project , So overturn this conjecture .
First check the environment , Use the same version locally jdk and tomcat, There is no error in running the project ;
Secondly, the background query sql Get it to the database and execute , There was no error ;
Finally, it is suspected that the project version is inconsistent , So copy the complete project back to the user server , Use it again after configuration tomcat After running, I still report the same problem .
I tried to modify the program several times but failed
Observe carefully sql The results of the investigation , It turns out that there are clob Data of type , But in the local database varchar2 Data of type ; Therefore, it is speculated that the reason is the database version .
Carefully analyze the backstage sql, Used wn_concat Function to put the found multiple pieces of data together and display them on the front desk , Because the server is clob Data of type , Cause data type mismatch , So the front desk reported an error .
边栏推荐
- [hard core science popularization] working principle of dynamic loop monitoring system
- [Yugong series] February 2022 U3D full stack class 005 unity engine view
- 测试踩坑 - 当已有接口(或数据库表中)新增字段时,都需要注意哪些测试点?
- MySQL introduction - crud Foundation (establishment of the prototype of the idea of adding, deleting, changing and searching)
- 如何在快应用中实现滑动操作组件
- mysql分区讲解及操作语句
- [Yugong series] February 2022 U3D full stack class 008 - build a galaxy scene
- [Yugong series] February 2022 U3D full stack class 006 unity toolbar
- Composer change domestic image
- String operation
猜你喜欢

How to realize the high temperature alarm of the machine room in the moving ring monitoring system

Exercise arrangement 2.10, 11

Tuowei information uses the cloud native landing practice of rainbow

All about PDF crack, a complete solution to meet all your PDF needs

2-3查找树

Deit learning notes

Implementation of navigation bar at the bottom of applet

Data type - floating point (C language)

Interpolation lookup (two methods)

One click deployment of highly available emqx clusters in rainbow
随机推荐
关于基于kangle和EP面板使用CDN
opencv 将16位图像数据转为8位、8转16
数据分析方法论与前人经验总结2【笔记干货】
Upload an e-office V9 arbitrary file [vulnerability recurrence practice]
如何理解分布式架构和微服务架构呢
POJ - 3616 Milking Time(DP+LIS)
Required String parameter ‘XXX‘ is not present
JS的操作
JEditableTable的使用技巧
[hard core science popularization] working principle of dynamic loop monitoring system
leetcode135. Distribute candy
Exercise arrangement 2.10, 11
MES system is a necessary choice for enterprise production
更改当前文件夹及文件夹下文件日期shell脚本
AVL平衡二叉搜索树
注解@ConfigurationProperties的三种使用场景
idea里使用module项目的一个bug
【踩坑】nacos注册一直连接localhost:8848,no available server
为什么要选择云原生数据库
Interface as a parameter (interface callback)