一个错还找了我一天,啊,就是Hibernate 方言,
<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://localhost/hibernate_session</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">123456</property>
这里hibernate.cfg.xml 中的配置,本来想一个字一个字来打出来,没有去copy 但就是因为这个找了我一天时间,
MySQLDialect被我写成了 MYSQLDialect