SSH 简单后端交互遇到的问题

get()传入的值必须是主键的类型,不然会报错:Provided id of the wrong type for class xdemo.entity.Student. Expected: class java.lang.Integer, got java.lang.String;

解决方法:get()传入的值是主键的类型

posted @ 2017-12-18 15:43  清雨染墨衣o  阅读(161)  评论(0编辑  收藏  举报