解决hibernate+mysql写入数据库乱码
hibernate.cfg.xml加上属性. true UTF-8 mysql 的驱动用3.0.15以上版本的, 加个Filter, 使用UTF-8字符集就可以了, 若使用Spring则写在spring中的sessionFactory里即可。 例如: root jdbc:mysql://
hibernate.cfg.xml加上属性. true UTF-8 mysql 的驱动用3.0.15以上版本的, 加个Filter, 使用UTF-8字符集就可以了, 若使用Spring则写在spring中的sessionFactory里即可。 例如: root jdbc:mysql://