linux 部署springboot tomcat项目,遇到creating bean with name ‘entityManagerFactory‘ defined in class path
Posted bosaidongmomo
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux 部署springboot tomcat项目,遇到creating bean with name ‘entityManagerFactory‘ defined in class path相关的知识,希望对你有一定的参考价值。
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
有可能是pom.xml文件有重复jar项。注意清除maven依赖项后重新打war包。
以上是关于linux 部署springboot tomcat项目,遇到creating bean with name ‘entityManagerFactory‘ defined in class path的主要内容,如果未能解决你的问题,请参考以下文章