数据库中定义了一个字段类型为text,在实体类上
加注解,@TableName(value = "***",autoResultMap = true),这里autoResultMap一定要为true,默认是false,不能够自动映射
实体类字段:
@TableField(value = "mapStr", typeHandler = FastjsonTypeHandler.class,jdbcType = LONGVARCHAR)
private Map<String, Object> map;