mybatis中的jdbcType的作用

Some databases need to know the value’s type even if the value itself is NULL.
For this reason, for maximum portability,
it’s the JDBC specification itself that requires the type to be specified and MyBatis needs to pass it along since it’s build on top of JDBC.

在给?赋值的时候,如果赋的是Null,需要调用PreparedStatement#setNull()方法。

可以在Mapper层中使用@MapKey注解来指定使用什么来作为返回值Map的键。

上一篇:Mysql: Table 'name' is specified twice, both as a target for 'UPDATE' and as a s


下一篇:No value specified for Date (没有为“Date”指定值)