利用Eclipse/MyEclipse开发SpringSide项目
一.下载安装
1.从http://www.springside.org.cn/download.php下载,并解压到本地磁盘(D:\springside-2.0-RC1-allinone);
2.运行springside-2.0-RC1-allinone文件夹根目录下的springside.bat(运行前请设好JAVA_HOME,PATH,JDK1.5);
3.在MyEclipse中安装插件:将D:\springside-2.0-RC1-allinone\tools\springside-ide\target\eclipse\plugins\org.springside.ide_1.0.0.jar文件拷贝到
D:\MyEclipse6.0\eclipse\plugins中,重新启动MyEclipse;
4.设置SpringSide目录:(Windows->Preferences->SpringSide->SpringSide2 Home),OK--设置完成;
二.利用SpringSide新建项目
File->New->other->选择SpringSide->SpringSide Project->点击Next,输入项目名称SsDemo->点击Next,选择所需的components(struts,hibernate)->点击Next,OK--项目框架生成了.
项目目录结构如下:
SsDemo
|-src/java
|+src/resources
|-test/unit
|+test/resources
|-test/functional
|-bin
|-lib
|-src
|-test
|+webapp
|-build.xml
运行项目:把*.bat作为外部工具来运行;
Run->Open External Tools Dialog(外部工具)->右键点击Program,New->Main选项卡,Location标题,点击Browse Workspace,选择quickstart.bat,OK.-->Working Directory标题,点击Browse Workspace,选择bin,OK.-->Run