开发者

Add Hibernate to STS Dynamic Web Project

开发者 https://www.devze.com 2023-04-01 13:24 出处:网络
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

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

精彩评论

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

关注公众号