自定义mapper插入数据报错:Implicit conversion from data type varbinary to datetime2 is not allowed.

解决方案:在插入具体字段的时候,去指定明确的数据类型:

#{item,jdbcType=TIMESTAMP}

更多推荐

Implicit conversion from data type varbinary to datetime2 is not allowed.