使用BeanUtils.copyProperties时出现java.lang.IllegalStateException

原因:BeanUtils.copyProperties(bo, Vo.class)场景中对应Bo或Vo未添加构造方法

解决方法:在Bo和Vo上添加@AllArgsConstructor和@NoArgsConstructor注解即可

posted @ 2021-12-28 16:46  realDevin  阅读(39)  评论(0编辑  收藏  举报