myeclipse如何给java项目添加hibernate环境
2017-06-03
相关话题
myeclipse如何给java项目添加hibernate环境 java开发的朋友自然不会不了解myeclipse了,目前使用最多的IDE,因为myeclipse开发很快捷,在初学者了解一些快捷的方法后,学习速度就加快点了。下面是小编跟大家分享的是myeclipse如何给java项目添加hibernate环境,欢迎大家来阅读学习~
myeclipse如何给java项目添加hibernate环境
工具/原料
myeclipse
方法/步骤
首先启动myeclipse

新建一个java project——》这里举例命名为hibernate_27_test

选中项目——》右键——》myeclipse——》add hibernate capabilities

这是时候弹出hibernate的jar包选中,一般只选核心包和annotationb包——》next

下边是创建hibernate.cfg.xml,next

选中一个数据库,next

下一步,创建一个存放sessionFactory的包

最后finish即可

添加完成即可见hibernate环境有了,还自动创建了hibernate.cfg.xml和sessionFactory

myecli