当前位置:网站首页>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 .
边栏推荐
- [Yugong series] February 2022 U3D full stack class 008 - build a galaxy scene
- Open3d ISS key points
- Go write a program that runs within a certain period of time
- Interface as a parameter (interface callback)
- 如何在HarmonyOS应用中集成App Linking服务
- Implementation method of data platform landing
- [Yu Yue education] basic reference materials of electrical and electronic technology of Nanjing Institute of information technology
- Opencv learning notes 1 -- several methods of reading images
- National SMS center number inquiry
- 字符串操作
猜你喜欢

单场带货涨粉10万,农村主播竟将男装卖爆单?
![[Yugong series] February 2022 U3D full stack class 006 unity toolbar](/img/2e/3a7d71a0b5a6aff294a0bd2f8515f8.jpg)
[Yugong series] February 2022 U3D full stack class 006 unity toolbar

Golang 编译约束/条件编译 ( // +build <tags> )

idea里使用module项目的一个bug

iptables 之 state模块(ftp服务练习)

Novice entry SCM must understand those things

Laravel8 uses passport login and JWT (generate token)

下载和安装orcale database11.2.0.4
![[hard core science popularization] working principle of dynamic loop monitoring system](/img/d4/0c0281aec5a4f444528e8cfd401598.jpg)
[hard core science popularization] working principle of dynamic loop monitoring system

如何在HarmonyOS应用中集成App Linking服务
随机推荐
Implementation method of data platform landing
Golang compilation constraint / conditional compilation (/ / +build < tags>)
Fluentd is easy to use. Combined with the rainbow plug-in market, log collection is faster
【微信小程序:缓存操作】
Composer change domestic image
单场带货涨粉10万,农村主播竟将男装卖爆单?
Go write a program that runs within a certain period of time
Ebpf cilium practice (2) - underlying network observability
Virtual address space
uniapp 微信小程序监测网络
The field value in Splunk subquery fuzzy matching CSV is*
FPGA knowledge accumulation [6]
指针进阶,字符串函数
Merge sort and non comparison sort
Componentspace2022, assertions, protocols, bindings, and configuration files
Three series of BOM elements
Leetcode 1984. Minimum difference in student scores
Coquette data completes the cloud native transformation through rainbow to realize offline continuous delivery to customers
Rapid integration of authentication services - harmonyos platform
Count sort (diagram)