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
VISITS_NUM = #{visitsNum},
CAROUSEL_PIC = #{carouselPic},
WHERE ID = #{id}
其中CAROUSEL_PIC字段类型为JSON,修改如下即可解决
CAROUSEL_PIC