问题:使用mybatisplus向数据库插入数据时,后台报了如下错误:

Cause: com.microsoft.sqlserver.jdbc.SQLServerException: 操作数类型冲突: varbinary 与 text 不兼容

分析:经查发现为给后台text字段传入了null值导致报错,程序中传入的时候如果是null赋值为“”,问题解决。

参考文章:

​https://www.pianshen.com/article/2806732251/​