Hibernate向MySQL插入中文数据--乱码解决

1 <property name="hibernate.connection.url">jdbc:mysql://127.0.0.1:3306/exam?useUnicode=true&amp;characterEncoding=utf8</property>

其中在jdbc中的'&' 符号,在这里需要写为 '&amp;'

原文地址:https://www.cnblogs.com/zhengbin/p/5113041.html