![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hibernate
KyrieCao
热爱Web开发,主打Java后台。
展开
-
使用Hibernate遇到的各种异常坑
前言今天使用SpringBoot整合Hibernate的时候测试的时候遇到一些异常问题,准备总结一下。把问题记录下来,希望能够帮助大家解决。整合环境SpringBoot 2.1.1JDK1.8Hibernate5.3.7异常一异常信息如下org.springframework.dao.InvalidDataAccessApiUsageException: org.hiberna...原创 2018-12-23 12:27:44 · 1593 阅读 · 0 评论 -
解决Hibernate 异常:duplicate import: refers to both com(try using auto-import="false")
前言今天在做项目时出现了很奇怪的异常,项目是 Hibernate 框架,生成了两个实体类,启动项目时报错。异常信息Invocation of init method failed; nested exception is org.hibernate.AnnotationException: Use of the same entity name twice: WExamResultEnt...原创 2019-07-13 08:30:46 · 1998 阅读 · 1 评论