当前位置:网站首页>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 .
边栏推荐
- Implementation of navigation bar at the bottom of applet
- [Chongqing Guangdong education] accounting reference materials of Nanjing University of Information Engineering
- Tips for using jeditabletable
- 联想混合云Lenovo xCloud:4大产品线+IT服务门户
- 如何在HarmonyOS应用中集成App Linking服务
- Ebpf cilium practice (1) - team based network isolation
- All about PDF crack, a complete solution to meet all your PDF needs
- Laravel8 uses passport login and JWT (generate token)
- Opencv learning notes II - basic image operations
- Go write a program that runs within a certain period of time
猜你喜欢
What is the method of manual wiring in PCB design in 22protel DXP_ Chengdu electromechanical Development Undertaking
Quick sorting (detailed illustration of single way, double way, three way)
The single value view in Splunk uses to replace numeric values with text
Implementation of navigation bar at the bottom of applet
Novice entry SCM must understand those things
Three series of BOM elements
Using nocalhost to develop microservice application on rainbow
[paper reading] icml2020: can autonomous vehicles identify, recover from, and adapt to distribution shifts?
Opencv learning note 3 - image smoothing / denoising
[Yugong series] February 2022 U3D full stack class 006 unity toolbar
随机推荐
Practice of implementing cloud native Devops based on rainbow library app
POJ - 3616 Milking Time(DP+LIS)
How to understand distributed architecture and micro service architecture
南京商品房买卖启用电子合同,君子签助力房屋交易在线网签备案
grpc、oauth2、openssl、双向认证、单向认证等专栏文章目录
You should use Google related products with caution
测试踩坑 - 当已有接口(或数据库表中)新增字段时,都需要注意哪些测试点?
Low success rate of unit test report
登山小分队(dfs)
[Yu Yue education] C language programming reference of Zhongbei College of Nanjing Normal University
MES system is a necessary choice for enterprise production
Upload an e-office V9 arbitrary file [vulnerability recurrence practice]
What is the method of manual wiring in PCB design in 22protel DXP_ Chengdu electromechanical Development Undertaking
opencv之图像分割
Several ways of lambda used in functions in kotlin (higher-order functions)
2-3查找树
Laravel8 uses passport login and JWT (generate token)
Composer change domestic image
GFS distributed file system
Mock.js用法详解