Spring,JPA,Mysql LOAD DATA INFILE无法序列化

时间:2018-03-12 19:31:38

标签: java mysql serialization spring-data-jpa load-data-infile

我正在使用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。

有谁知道为什么或该怎么样的例外? 提前感谢您的意见和帮助!

0 个答案:

没有答案