get()传入的值必须是主键的类型,不然会报错:Provided id of the wrong type for class xdemo.entity.Student. Expected: class java.lang.Integer, got java.lang.String;
解决方法:get()传入的值是主键的类型
get()传入的值必须是主键的类型,不然会报错:Provided id of the wrong type for class xdemo.entity.Student. Expected: class java.lang.Integer, got java.lang.String;
解决方法:get()传入的值是主键的类型
转载于:https://www.cnblogs.com/dianfu537/p/8057947.html