错误的原因是我的Student实体,成员变量数据类型,使用了int基本数据类型,改成Integer包装类型即可。 转载于:https://www.cnblogs.com/pandaQQQ/p/9693033.html