当前位置: 移动技术网 > IT编程>开发语言>Java > Spring Boot 报错:Error creating bean with name 'entityManagerFactory' defined in class path resource

Spring Boot 报错:Error creating bean with name 'entityManagerFactory' defined in class path resource

2019年07月04日  | 移动技术网IT编程  | 我要评论

在部署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项目不再报错,运行成功!

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网