设为首页 加入收藏

TOP

Spring Boot 报错:Error creating bean with name 'entityManagerFactory' defined in class path resource
2019-09-17 17:23:42 】 浏览:26
Tags:Spring Boot 报错 Error creating bean with name ' entityManagerFactory' defined class path resour

在部署springboot项目时遇到了如题的错误。

一开始也是摸不着头脑,到底是哪里出了问题,接着看到了如图,在配置文件中“

org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

”这段是标红的。那么肯定是跟pom.xml中的依赖有关。

接着在网上试了很多种方法,都没有解决这个问题。

最后是通过将Mavn库中的org.hibernate.hibernate-core下的内容全部清空(Mavn库默认具体位置是:${user.home}/.m2/repository),接着再对配置文件重新导入就可以了,这个问题应该还是依赖jar包的问题。(右键pom.xml -> Mavn -> Reimport 重新引入依赖

最后可以看到该springboot项目不再报错,运行成功!

 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇你经历过满屏都在飞"1".. 下一篇安装hadoop集群--hdfs

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目