Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for cl
參考:https://blog.51cto.com/12012821/2368259
spring boot使用jpa查詢返回實體後,返回介面時候json格式化出錯
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.winyo.commonstarter.model.ServiceResult["data"]->com.winyo.shop.entity.User$HibernateProxy$RIMO4ULm["hibernateLazyInitializer"])
實體類加上註解即可
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
相關文章
- No serializer found for class org.apache.ibatis.executor.loader.javassist.JavassistProxyFactory...ApacheBATJava
- Caused by: org.apache.ibatis.binding.BindingException: Parameter 'parameter' not found.解決ApacheBATException
- cl 的完整程式
- 序列化器-Serializer LL
- Yii2.0 初識 RESTful SerializerREST
- Django REST Framework中的Serializer relationsDjangoRESTFramework
- CL_ABAP_CHAR_UTILITIES類
- Caused by: android.os.Android
- Dictionary inconsistency caused by CTAS in PARALLELParallel
- Django(45)drf序列化類的使用(Serializer)Django
- OpenCL中的管道cl::Pipe的使用
- Caused by: Error: ' ' is not a valid resource name characterError
- Springboot:Caused by: java.lang.NoSuchMethodError...Spring BootJavaError
- Caused by: java.lang.NoClassDefFoundError: javax/persistence/EntityListenersJavaError
- drf serializer 字首 get 是什麼? 如何傳遞引數?
- 使用NASM和CL(或LINK)寫HelloWorldASM
- Caused by:.NoSuchBeanDefinitionException: No bean named 'userInfoServiceImpl' availableBeanExceptionAI
- Caused by: java.lang.NoClassDefFoundError: javax/servlet/GenericFilterJavaErrorServletFilter
- ORA-01555 caused by SQL statement belowSQL
- Tomcat:Caused by: java.lang.OutOfMemoryError: PermGen space .TomcatJavaError
- [ChatGPT 勘誤] 關於 CL_WB_PGEDITOR 的用途ChatGPT
- mysql中You can’t specify target table for update in FROM clMySql
- Caused by: java.lang.IllegalArgumentException: port out of range:-1JavaException
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionExceptionSpringFrameworkBeanException
- 樹莓派4B-SPI讀寫flash-FM25CL16B(同時支援FM25CL64等其它系列Flash)樹莓派
- Spring Cloud與Dubbo的完美融合之手「Spring ClSpringCloud
- 【轉載】CL_HTTP_CLIENT的HTTP和SOAP用法示例HTTPclient
- 使用cl.exe和linker.exe連線程式線程
- place autour de phrases de mots clés à faible prix GHDAI
- 螞蟻金服通訊框架SOFABolt解析 |序列化機制(Serializer)框架
- 螞蟻金服通訊框架SOFABolt解析|序列化機制(Serializer)框架
- SAP 電商雲 Spartacus UI 實現的 ngrx-router-store.js 的 serializerUIJS
- 遇到Caused by: java.lang.NoClassDefFoundError: javax/validation/ParameterNameProviderJavaErrorIDE
- Software caused connection abort: socket write error/mysql/tomcatErrorMySqlTomcat
- pip: command not found
- The requested URL was not found on the serverServer
- HttpServlet was not found on the JavaHTTPServletJava
- .NET Core基礎學習——.NET Core SDK與命令列(CL命令列