异常信息:
Caused by: java.sql.SQLSyntaxErrorException: Table 'hibernate.news' doesn't exist
解决方案:
因为mysql版本原因,我在 mysql 的 mysql.ini 文件中把 default-storage-engine 设置成了 MYISAM,
所以在hibernate.cfg.xml配置文件中把 dialect 设置成了 org.hibernate.dialect.MySQLMyISAMDialect,
导致 hibernate 没有自动创建表,把 dialect 值改成 org.hibernate.dialect.MySQL5InnoDBDialect 即可。