报错信息是:nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='__frch_item_0.userId', mode=IN, javaType=class java.lang.Long, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #1 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 无效的列类型: 1111

报错信息是Error setting null for parameter #1 with JdbcType OTHER

报错原因是:传过来的参数类型不对,需要的是一个long型的数据,结果传过来是一个String类型的数据,导致接收不了,网上说在传过来的数据jdbcType=NUMERIC,如下,数据库里number类型的数据写成NUMERIC,发现换了一个错,但是仍然没有解决

<insert ></insert>

解决办法是:检查前端部分传过来的数据是否正确

 

相关文章:

  • 2021-10-31
  • 2021-05-13
  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
  • 2021-09-21
  • 2021-08-01
猜你喜欢
  • 2021-06-22
  • 2022-12-23
  • 2019-08-30
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案