无标题文章

问题:

Servlet.service() for servlet [dispatcherServlet] in context with path [/FirstSmartHome] threw exception [Request processing failed; nested exception is org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple type, class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.tr.model.OperatorTableData["data"]->java.util.ArrayList[0]->com.tr.entity.OperatorInfo["roleInfo"]->com.tr.entity.RoleInfo_$$_jvste6a_11["handler"])] with root cause

解决方案:

spring.jackson.serialization.FAIL_ON_EMPTY_BEANS=false

你可能感兴趣的:(无标题文章)