Expected: class java.lang.Integer, got class java.lang.String
项目使用hibernate框架得时候,有时会通过id去获取实体类对象,但有时会报一下错误:org.hibernate.TypeMismatchException: Provided id of the wrong type for class xx. Expected: class java.lang.Integer, got class java.lang.String