1.遇到问题,连不上数据库
using password:no
解决:他妈的我写<property name="hibernate.connection.password">的时候connection少了一个n
2.然后是发现hibernate创建成功了,但是mysql中没有这个User表
解决:方言设得不对 <property name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property>
3. <property name="hibernate.show_sql">true</property>
<property name="hibernate.format_sql">true</property> 还是不显示sql语句
实际上是从写字板赋值properties的时候 把空格也粘进name的字符串里了 导致不能识别 XML没有编译报错真的是太坑爹了 各种错误都发生在cgf.xml里面