![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
actionzxz
这个作者很懒,什么都没留下…
展开
-
Hibernate使用ServiceRegistryBuilder出错
Hibernate使用ServiceRegistryBuilder出错 原因:版本4之后的Hibernate中buildServiceReguistry()方法被替换了。 解决方法: (1)版本导入更换为: import org.hibernate.boot.registry.StandardServiceRegistryBuilder; (2)在版本4中的用法: Configurat...原创 2018-09-10 22:08:35 · 955 阅读 · 0 评论 -
使用Hibernate报错:MySQL server version for the right syntax to use near 'type=InnoDB' at line xxx
使用Hibernate报错:MySQL server version for the right syntax to use near 'type=InnoDB' at line xxx 原因:(1)某些版本的mysql不支持type写法。 (2)实际上,在MySQL5.0以前,type=InnoDB是有效的SQL语句,MySQL5.0之后,type=InnoDB不再有效了。 解决办法...原创 2018-09-10 22:09:17 · 3720 阅读 · 1 评论