博客
关于我
Eclipse下创建Hibernate工程
阅读量:102 次
发布时间:2019-02-26

本文共 816 字,大约阅读时间需要 2 分钟。

一、给 Eclipse 安装 Hibernate 工具

点击 Help--> Install New Software...

点击右上角的 add,输入 Name(可自定义),Location 填入【http://download.jboss.org/jbosstools/neon/stable/updates/】

选择 Jboss Web and Java EE Development 目录下的 Hibernate Tools

安装完成后,重启 Eclipse

点击左上角 New,选择 Other,找到 Hibernate,说明安装成功

二、下载必须的 jar 包

  • hibernate-release-5.2.10.Final/lib/required下的所有包(共8个)
  • mysql-connector-java-5.1.41-bin.jar
  • junit-4.10.jar

三、给 Eclipse 添加自定义类库

点击 Windows--> Preference-->Java-->Build Path-->User Libraries

点击 New,输入名字如 hibernate-core

选择 Add External JARs,导入 hibernate 核心包

点击 New,输入名字如 junit4

选择 Add External JARs,导入 junit4.0 jar

点击 New,输入名字如 mysql-jdbc

选择 Add External JARs,导入 mysql jdbc 驱动包

四、新建 Java Project,导入类库

新建 Java project,命名为 Hibernate_001

右键选择 Properties-->Java Build Path-->Libraries

点击 Add Libraries,选择 User Libraries

全选并添加刚创建的自定义库

文章完毕

转载地址:http://rpuu.baihongyu.com/

你可能感兴趣的文章
nowcoder—Beauty of Trees
查看>>
np.arange()和np.linspace()绘制logistic回归图像时得到不同的结果?
查看>>
np.power的使用
查看>>
NPM 2FA双重认证的设置方法
查看>>
npm build报错Cannot find module ‘webpack/lib/rules/BasicEffectRulePlugin‘解决方法
查看>>
npm build报错Cannot find module ‘webpack‘解决方法
查看>>
npm ERR! ERESOLVE could not resolve报错
查看>>
npm ERR! fatal: unable to connect to github.com:
查看>>
npm ERR! Unexpected end of JSON input while parsing near '...on":"0.10.3","direc to'
查看>>
npm ERR! Unexpected end of JSON input while parsing near ‘...“:“^1.2.0“,“vue-html-‘ npm ERR! A comp
查看>>
npm error Missing script: “server“npm errornpm error Did you mean this?npm error npm run serve
查看>>
npm error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,1) 安装
查看>>
npm install CERT_HAS_EXPIRED解决方法
查看>>
npm install digital envelope routines::unsupported解决方法
查看>>
npm install 卡着不动的解决方法
查看>>
npm install 报错 EEXIST File exists 的解决方法
查看>>
npm install 报错 ERR_SOCKET_TIMEOUT 的解决方法
查看>>
npm install 报错 Failed to connect to github.com port 443 的解决方法
查看>>
npm install 报错 fatal: unable to connect to github.com 的解决方法
查看>>
npm install 报错 no such file or directory 的解决方法
查看>>