html的username和password,要和封装属性值的username和password的 set 的参数名称一致,如果不这样做,那么使用BeanUtils.populate()封装时,里面的键值就会为null 代码示例: html user类 希望能帮助大家解决问题