解决MySQL 5.5与hibernate存储中文乱码问题
在使用hibernate与mysql做数据存储的时候,会发现如果你存入的是中文会在数据库中出现乱码,解决方法如下:将hibernate.cfg.xml中改成<property name="hibernate.connection.url"> jdbc:mysql://localhost:3306/hibernate?useUnicode=true&characterEncoding=utf-8 </property&g...