Read Me
2006-8-21 16:39
created
eclipse开发环境配置
1.
安装 subversion 插件
http://subclipse.tigris.org/update
在svn 资源库研究视图下,新建一个资源库位置,输入url
HTTPS://svn.sourceforge.net/svnroot/chathere
对于开发者,用户名和密码是你在 sourceforge.net 的注册用户名和密码。
如果 能够获得远程文件视图,则点击svn资源库窗口下的 url,选择右键弹出菜单
取出为,根据你原有空间下是否有该项目选择。
2.
安装 maven 插件
http://m2eclipse.codehaus.org/
在java视图下,右键点击chathere项目,如果出现maven2,表示插件安装成功,选择enable
3.代码修改,上传
右键点击chathere项目,team 菜单中有提交,同步等
4.subversion windows下的工具
tortoisesvn也很好用
5.webwork ide
spring ide
http://springide.org/updatesite/
freemarker ide
http://www.freemarker.org/eclipse/update
hibernate
http://www.binamics.com/hibernatesync
eclipse 下单元测试环境
首先将
src\main\java\
src\test
src\main\webapp
src\main\resources
设置成source folder
编译后输出应该在
hahere/target/hahere/WEB-INF/classes
保证 spring配置文件,webwork配置文件,log4j,jdbc,hbm.xml 等配置都能生成到输出目录。
运行 src\test 目录下的测试用例
本地集成测试 url测试方法
在 %Catalina_HOME%\apache-tomcat-5.5.17\conf\Catalina\localhost文件夹下创建
hahere.xml 内容如下
<?xml version="1.0" encoding="UTF-8"?>
<Context
docBase="D:/workspace/javaspace/hahere/target/hahere"
privileged="true">
</Context>
其中docBase指向你的hahere webapp 生成目录
修改代码后
运行 mvn package ,reload hahere web应用,或是重启tomcat
如果离线应用mvn,则在参数前加 -o,
如
mvn -o compile
mvn -o antrun:run package
页面调用
http://localhost:8080/hahere
http://localhost:8080/hahere/index.action
http://localhost:8080/hahere/register.action
net start mysql
net stop mysql
mysql -u root -p mysql
drop database hahere;
create database hahere;
GRANT ALL PRIVILEGES ON *.* TO scott@localhost
IDENTIFIED BY 'tiger' WITH GRANT OPTION;
mysql -u scott -p hahere
http://localhost:8080/hahere/jcap
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.