后台报错:
Could not set parameters for mapping: ParameterMapping{property='id', mode=IN, javaType=class java.lang.String, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #1 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
这个字段出现问题,检查下面几个地方:
1. domin 的 id 是否是 Long 类型。
2. mapper 的 parameter 是不是 Long 类型。
3. 数据库表的 id 字段。