Use show variables like 'character % 'to view the database encoding. latin1 is expected.
If the project is being tested and the data is not important, the solution is to use alert database tuanplus character set utf8 to change the encoding format of the database, and then create a new table (in Hibernate, specify hibernate. hbm2ddl. auto = create, re-deploy the project, hibernate will automatically re-create the table), view the database code at this time, hey, it's utf8. Exception relief.
If the data in the project is important data, there is still a solution.
To use alter table address convert to character set utf8 to convert the data table that needs to be inserted into Chinese characters, encode it as utf8 (in this example, the data table is address ):
It is best to back up data in advance to avoid exceptions.
Sorry, the Garbled text is a headache ..