为了账号安全,请及时绑定邮箱和手机立即绑定

Spring boot entityManagerFactory Bean

Spring boot entityManagerFactory Bean

皈依舞 2018-10-28 13:13:27
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2018-03-28 20:03:54.708 ERROR 11400 --- [ main] o.s.boot.SpringApplication : Application run failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [com/wangyonglin/configuration/DataSourceConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean]: Factory method 'entityManagerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/Sessionat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:587) ~[spring-beans-5.0.4.RELEASE.jar:5.0.4.RELEASE]]
查看完整描述

2 回答

?
杨魅力

TA贡献1811条经验 获得超6个赞

可以打开jar包的依赖图,红线的话表示有冲突,可以不写版本号,也可以让提示选择版本。。然后点击刷新jar包~

查看完整回答
反对 回复 2018-11-03
  • 2 回答
  • 0 关注
  • 1270 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信