hibernate的配置文件中加入:
另外,mysql的表,字段都应该设成utf-8的字符集
character set:utf8
collation:utf8_general_ci
解决方法:
hibernate的配置文件中加入:
<property name="connection.useunicode">true</property>
<property name="connection.characterencoding">utf-8</property>
另外,mysql的表,字段都应该设成utf-8的字符集
character set:utf8
collation:utf8_general_ci