### Cause: java.lang.IllegalStateException: Type handler was null on parameter mapping for property 'carouselPic'. It was either not specified and/or could not be found for the javaType ([Ljava.lang.String;) : jdbcType (VARCHAR) combination.] with root cause
java.lang.IllegalStateException: Type handler was null on parameter mapping for property 'carouselPic'. It was either not specified and/or could not be found for the javaType ([Ljava.lang.String;) : jdbcType (VARCHAR) combination.
UPDATE mf_shopping.product
<set>
<if test="visitsNum != null">
VISITS_NUM = #{visitsNum},
</if>
<if test="carouselPic != null">
CAROUSEL_PIC = #{carouselPic},
</if>
</set>
WHERE ID = #{id}
其中CAROUSEL_PIC字段类型为JSON,修改如下即可解决
CAROUSEL_PIC = #{carouselPic,jdbcType=VARCHAR,typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler},
来源:oschina
链接:https://my.oschina.net/u/3155476/blog/3170849