mysql-connector-java8.0 pit

Today in the development encountered pit a 8.0 database primary keys are generally located is bigint type generally used to receive the long type when the DO level received today want to return the object primary key after the insert operation mybatis, but has been News bigint can not be converted to type long, and finally by first converting the primary key for the string, the string will be converted to a long resolved. . . Personal guess is probably because setting up the primary key for the unsigned, unsigned long when converted to a potential difference may lead to problems when mysql construction of the table. Remember here, I hope the next long point memory

Guess you like

Origin www.cnblogs.com/qtlq/p/11779126.html