我正在使用JPA将信息从CSV加载到MySQL,这里是查询:
@Query(value = "LOAD DATA LOCAL INFILE :file INTO TABLE info FIELDS TERMINATED BY ',' LINES TERMINATED BY '\\n' (d_create, folder, work, status, country, component, type)", nativeQuery = true)
void upldInf(@Param("file")MultipartFile file);
它起作用..或者至少它是被禁止的,因为捕获得到了下一个例外:
could not serialize; nested exception is org.hibernate.type.SerializationException: could not serialize
,数据未加载到MySQL。
有谁知道为什么或该怎么样的例外? 提前感谢您的意见和帮助!