- 以下是在eclipse上安裝Hibernate的插件,hibernate在編程上堅持出現,故需要在eclipse上進行如下安裝。
- 首先把安裝Hibernate插件,常用到JBoss,訪問http://tools.jboss.org/downloads/
- 如圖下左上角的第一個紅色框中,有Nightly(試用的)和Stable(穩定的),這里選擇Stable版本,點擊完成后,再點擊Artifacts,選擇Update Site(including sources) bundle of all JBoss Core Tools,下載zip。
- 下載后的zip包,如下。
- 下載完成后,打開eclipse(這里的版本是neon)。點擊Help – > Install New SoftWare
- 點擊Add..
- 在Add Repository 的窗口中點擊Archive..
- 將剛剛下載完畢的zip選擇,並點擊OK。
- 這里我們看到會有很多工具插件,我們現在只要Hibernate,所以點擊JBoss Web and Java EE Development 的小三角。
- 選擇Hibernate Tools 打√,取消Contact all update sites during install to find required software , 然后點擊Next >。
- 點擊Next > 。
- 選擇I accept the terms of the license agreement ,接着點擊Finish。
- 安裝的過程如下。
- 提出的Security Warning提示,點擊OK。
- 提出SoftWare Update ,大概就是要重啟才能使用在Eclipse中使用工具,點擊Yes。
- 提出JBoss Tools Usage ,點擊Yes。
- 完成后,我們在項目里面,點擊新建一個文件,就會找到我們剛剛安裝完成的Hibernate工具。
- Eclipse中安裝Hibernate插件到此結束! !@#$#$%^&#^*^$