这是错误提示
三月 29, 2017 10:33:16 下午 org.hibernate.annotations.common.Version
INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
三月 29, 2017 10:33:16 下午 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.2.Final}
三月 29, 2017 10:33:16 下午 org.hibernate.cfg.Environment
INFO: HHH000206: hibernate.properties not found
三月 29, 2017 10:33:16 下午 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
三月 29, 2017 10:33:16 下午 org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
三月 29, 2017 10:33:16 下午 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
这是配置文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.password">1995</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/hibernate?characterEncoding=utf8&&serverTimezone=UTC</property>
<!-- <property name="jdbcUrl"> jdbc:mysql://localhost:3306/hibernate?characterEncoding=utf8&serverTimezone=UTC</property> -->
<property name="hibernate.current_session_context_class">thread</property>
<!-- 是否在控制台打印sql -->
<property name="show_sql">true</property>
<!-- 是否对sql进行格式化 -->
<property name="format_sql">true</property>
<!-- 指定自动生成数据表的策略 -->
<property name="hbm2ddl">update</property>
<!-- 指定关联的hbm.xml -->
<mapping resource="entity/Users.hbm.xml"/>
</session-factory>
</hibernate-configuration>