<session-factory>
<!--#1: basic Four--
<property name= "Hibernate.connection.driver_class" >com.mysql.jdbc.Driver</property>
<property name= "Hibernate.connection.url" >jdbc:mysql://localhost:3306/h01</property>
<property name= "Hibernate.connection.username" >root</property>
<property name= "Hibernate.connection.password" >123</property>
<!--#2: dialect---
<property name= "Hibernate.dialect" >org.hibernate.dialect.MySQL5Dialect</property>
<!--#3 Displaying SQL statements, formatting SQL statements--
<property name= "Hibernate.show_sql" >true</property>
<property name= "Hibernate.format_sql" >true</property>
<!--registering a mapping file--
<mapping resource= "Cn/itcast/a_hello/user.hbm.xml"/>
<!--cancel Bean validation, javaweb6.0
<property name= "Javax.persistence.validation.mode" >none</property>
these two lines can be replaced by a position
</session-factory>