could not be found for the javaType (java.util.List) : jdbcType (null) combination.
•
Jave
问题描述: Type handler was null on parameter mapping for property ‘gyWarehouseCode’. It was either not specified and/or could not be found for the javaType (java.util.List) : jdbcType (null) combination.
解决方案1:如果属性’gyWarehouseCode’的java类型为java.util.List,请确保指定了正确的jdbcType。
INSERT INTO your_table (gyWarehouseCode) VALUES
(#{code, jdbcType=VARCHAR})
解决方案2:在java对应的实体类对应的字段上加上(typeHandler = JacksonTypeHandler.class)这个注解
@TableField(typeHandler = JacksonTypeHandler.class) private List gyWarehouseCode
本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/7f6fa978f3.html
