开发者

Add Hibernate to STS Dynamic Web Project

I have a Dynamic Web Project which I am developing using STS.

I want to add Hibernate to it. Is it a matter of adding the necessary jar files to the project manually, or is there some trick that I am missing that will just allow 开发者_高级运维me to "Add Hibernate" ?


You need to add the jars.

  • If it is no maven project then copy the jars to: webapp/WEB-INF/lib
  • If you use maven then add the hibernate dependencies to your pom

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜