No serializer found for class ******** and no properties discovered to create BeanSerializer (to avo

Springboot出现如下错误
No serializer found for class com.example.videotest2vue.entity.VideoDetail and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: java.util.ArrayList[0])
在这里插入图片描述
经检查,上面报错信息中标注的类没有加getter方法,加上即可解决。

猜你喜欢

转载自blog.csdn.net/u014292402/article/details/128428329