In the url of druid.properties in the maven project, change it to
url=jdbc:mysql:///travel?characterEncoding=UTF-8
In this way, the data transferred to mysql is Chinese data, of course, the data encoding format in mysql should be changed to utf-8 in advance