3.9 java.lang.IllegalArgumentException: Source must not be null

 

 

BeanUtils.copyProperties(source,target)   source,target 的返回都不能为null,否则就报错,找了半天发现数据库有个置顶的字段weight在启动的时候弄为0了,

然后就报错了,设为1就能正常显示出文章了

 

 

weight为0时候

 

posted @ 2022-03-09 16:01  脚踏实地敲代码  阅读(2421)  评论(4)    收藏  举报