创建名为'sessionFactory'的java配置为基于hibernate的bean时出错

时间:2017-07-06 15:32:02

标签: java spring hibernate config

我收到此错误:

enter image description here

enter image description here

我不知道如何解决这个问题。这是我的app文件夹:

enter image description here

这些是我基于java的配置文件:

enter image description here

1 个答案:

答案 0 :(得分:0)

你这个依赖

<dependency>
  <groupId>org.hibernate</groupId>
  <artifactId>hibernate-core</artifactId>
  <version>5.2.9.Final</version>
</dependency>

配置请参考以下链接:

http://www.codejava.net/frameworks/spring/spring-4-and-hibernate-4-integration-tutorial-part-2-java-based-configuration

https://dzone.com/articles/springhibernate-application