Spring boot entityManagerFactory Bean

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 failed

org.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/Session
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:587) ~[spring-beans-5.0.4.RELEASE.jar:5.0.4.RELEASE]]


皈依舞
浏览 1282回答 2
2回答

杨魅力

可以打开jar包的依赖图,红线的话表示有冲突,可以不写版本号,也可以让提示选择版本。。然后点击刷新jar包~
打开App,查看更多内容
随时随地看视频慕课网APP