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


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

参考:https://blog.csdn.net/u013861835/article/details/79280882/

谢谢你们,第一次学写java 还没有一个星期,为了这个问题看了好多资料,谢谢你们,我看过你们的回答才启示我,原因问题是springboot 版本问题我用的是2.0.0被我写为1.5.3就过了谢谢你们