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

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

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

org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

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

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

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

最后能够看到该springboot项目再也不报错,运行成功!xml

相关文章
相关标签/搜索