Mybatis USES lazy step loading to cause json conversion exception
-
anomaly description strong>
No serializer found for class org. Apache. Ibatis. Executor. Loader. The javassist. JavassistProxyFactory... code>
p> li> -
solve abnormal strong> * * * p>
in distributed query each related bean class strong> add annotation
@ JsonIgnoreProperties (value = {} "handler") code> p> li>
-
reason
lazy loading is you have to use data will give you query 0, but 1 directly query object 2 into json string will lead to 3 results have not been query out of json4, This is what causes the interface 500 exception. Note : object does not load SQL query, only when output this object is use this data 0 will be 1 query 2 from the database and assign data to dependent object
3
4
5
Read More:
- To customize the aggregate function of Flink (Step-by-Step Tutorial)
- Nuxt uses the image lazy to load the lazy component tag, and an error is reported
- OpenGL step pit record
- Step on the pit — error reported by sqoop tool.ExportTool : Error during export
- Myeclipse10: one step error report solution for cracking replacejar
- Appium step pit summary — solution
- When websocket transmits JSON text, the parse method reports an error
- Deploy mongodb fragment combined with replica set to realize distributed storage of MySQL database files (step 10)
- Failed: error connecting to db server: server returned error on SASL authentication step: Authentica
- Redis reports an error when integrating springsecurity: could not read JSON: unrecognized field “enabled”“
- spring mybatis mapper Specified class is an interface
- Configuration file for vscode setting.json UI interface or JSON form
- Unit Android converts c# class to JSON file and reports an error
- Mybatis integrates Oracle query and reports an error in the datetime type field
- The java.lang.exceptionininitializererror of mybatis reports an error
- Mybatis property loading order [How to Solve]
- Mybatis passes in multiple parameters to mapper. And uses @param details to report an error
- Hadoop reports an error. Cannot access scala.serializable and python MapReduce reports an error
- Docker load loading mirror message JSON no such file or directory error
- [jQuery] jQuery operates on JSON strings or JSON objects