首页 > 其他 > 详细

Error creating bean with name 'entityManagerFactory' defined in class path resource : Invocation of init method failed

时间:2020-07-02 18:54:04      阅读:67      评论:0      收藏:0      [点我收藏+]

解决方法如下:

检查添加maven依赖

<dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>2.3.0</version>
</dependency>

若添加依赖后无效,则可能maven仓库存在多个版本的hibernate-core或者hibernate-entitymanager版本,进入maven仓库删除后重新下载重试

 

https://stackoverflow.com/questions/40058001/error-creating-bean-with-name-entitymanagerfactory-defined-in-class-path-resou

Error creating bean with name 'entityManagerFactory' defined in class path resource : Invocation of init method failed

原文:https://www.cnblogs.com/itachilee/p/13226364.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!