BeanUtils怎么没有populate方法

最近在练习项目时,发现使用BeanUtils.populate()方法封装对象,方法报红,百思不得其解。
在这里插入图片描述

翻开源码发现包下没有populate方法,断定包导错了,不应该是Spring下的BeanUtils,应该是apache下的BeanUtils

在这里插入图片描述

这个才是正确的Bean包

猜你喜欢

转载自blog.csdn.net/Slience_me/article/details/113980332