1、数据源:oracle
2、网关使用database
当我数据源从mysql换为oracle后,新增路由网关前端一直显示成功,但其实没有新增数据,后台跟一下报了一个错:
Could not set parameters for mapping: ParameterMapping{property='id', mode=IN, javaType=class java.lang.Object, 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
新增的数据是没有id的,但它查了id=null的数据。修改了后就没问题,如下图所示: