摘要:
在云计算平台部署一应用,在数据库中可以直接插入中文数据,但在网页表单提交中文数据到数据库后会乱码,而且平台不提供系统密码导致没有权限修改my.cnf,在hibernate.cfg.xml文件中加入如下语句后解决了该问题:<property name="hibernate.connection.useUnicode">true</property><property name="hibernate.connection.characterEncoding">UTF-8</property><proper 阅读全文
posted @ 2013-02-19 09:55
Catcher_8
阅读(197)
评论(0)
推荐(0)

浙公网安备 33010602011771号