After Hibernate automatically generates the data table, the data inside is garbled

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd" >
<hibernate-configuration>
  <session-factory>
    <!-- 配置方言 -->
    <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
    <!-- 配置数据库驱动类 -->
    <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
    <!-- 数据库访问路径 -->
    <property name="hibernate.connection.url"> jdbc:mysql://127.0.0.1:3306/hibernate?useUnicode=true&characterEncoding=UTF-8
    <!-- username--> </property>
    <property name="hibernate.connection.username">root</property>
    <!-- password-->
    <property name="hibernate.connection.password"></property>
   
    <property name="hbm2ddl.auto" >update</property>
    <!-- Whether to display the generated SQL statement information in the console-->
    <property name="show_sql">true</property>
   
    <!-- Manage load mapping files-->
    <mapping resource ="com/shxt/model/User.hbm.xml"/>
 
 
  </session-factory>
</hibernate-configuration>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327031316&siteId=291194637