如何将JPetStore导入NetBeans 6.5.1

本篇内容主要讲解“如何将JPetStore导入NetBeans 6.5.1”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“如何将JPetStore导入NetBeans 6.5.1”吧!

1、首先要有NetBeans和JPetStore

2、在NetBeans中新建项目Java Web >>Web Application with Existing Sources

如何将JPetStore导入NetBeans 6.5.1


3、Name and Location

这个只要选定Location就可以了,其他的保持默认

如何将JPetStore导入NetBeans 6.5.1


点击下一步会出现个提示框,直接确定就可以了

4、Server and Settings

这个按下图选择

如何将JPetStore导入NetBeans 6.5.1

5、Existing Sources and Libraries

只需要把Web Pages选为jpetstore目录下的war文件夹即可

如何将JPetStore导入NetBeans 6.5.1

6、添加需要的库

下面列出了我所加入的库,由于我的Web层是用的Spring MVC,所以没有加Strut

如何将JPetStore导入NetBeans 6.5.1

7、配置数据库

在jdbc.properties文件中配置好连接,然后把db文件夹下的schema和data导入你的数据库就可以了。

8、按下F6启动看看吧!

如何将JPetStore导入NetBeans 6.5.1

到此,相信大家对“如何将JPetStore导入NetBeans 6.5.1”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!