报错信息
No serializer found for class org.apache.ibatis.executor.loader.javassist.JavassistProxyFactory$EnhancedResultObjectProxyImpl and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain:
com.wang.springboot04_mp_vue_elementui.entity.JsonResult["data"]->com.baomidou.mybatisplus.extension.plugins.pagination.Page["records"]->java.util.ArrayList[0]->com.wang.springboot04_mp_vue_elementui.entity.SProduct_$$_jvstc2a_0["handler"])
解决方案:
在相关实体类中加入一下注解:
@JsonIgnoreProperties(value = {"handler"})
这样就可以解决异常报错了!