在Hibernate的配置文件中做如下修改:
<property name="connection.url">
jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8
</property>
在Hibernate的配置文件中做如下修改:
<property name="connection.url">
jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8
</property>