弄 了1个小时 终于解决了 (一 整 个工程的编码改为 UTF-8 ,二 数据库改为UTF-8)
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/test</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">root</property>
<property name="hibernate.dialect"> org.hibernate.dialect.MySQLDialect</property>
<!--这两句可不能掉哟-->
<property name="connection.useUnicode">true</property>
<property name="connection.characterEncoding">utf-8</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
<!-- Drop and re-create the database schema on startup -->
<property name="hbm2ddl.auto">update</property>