Cause: java.sql.SQLException: Illegal mix of collations (latin1_german1_ci,IMPLICIT) and (utf8mb4_ge

The problems that arise are as follows

 The preliminary judgment should be that the character set of the data table does not match Java, or is not supported.

show variables like 'character_set_%';

 Type of query character used

 Finally, follow the error message of idea and change the latin1 character set to utf8mb4_general_ci and you are done.

Restart the project after modifications

 

Guess you like

Origin blog.csdn.net/m0_72435337/article/details/131782480