Hibernate中mysql乱码

Hibernate中mysql乱码
< property name = " connection.url " > jdbc:mysql: // localhost:3306/test?useUnicode=true&amp;characterEncoding=UTF-8</property>

<!--  乱码  -->
< property name = " connection.useUnicode " > true </ property >
< property name = " connection.characterEncoding " > UTF - 8 </ property >

你可能感兴趣的:(Hibernate中mysql乱码)