mybatis plus 注释问题

Could not set parameters for mapping: ParameterMapping{property='mybatis_plus_first', mode=IN, javaType=long, 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.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).

在mybatis里面注释语句的时候,一定不要用–,用 <!- -需要注释的内容–>。

原文地址:https://www.cnblogs.com/xhxsk/p/13353117.html