在pom中hibernate的配置比较简单,先添加下面的依赖:
<!--hibernate 核心包-->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.6.6.Final</version>
<type>jar</type>
<scope>compile</scope>
</dependency>