Hibernate配置文件中指定MySQL数据库的编码方式
具体的设置如下:
my.ini 中:
客户端的:
[client]
port=3306
[mysql]
default-character-set=gbk
服务端的:
[mysqld]
# The default character set that will be used when a new schema or table is
# created and no character set is defined
default-character-set=utf8 3 楼 Ashfrog 2010-10-12 非常有用的解决方案···
谢谢博主···