如何通过维护其他配置在现有Eclipse中设置Struts2? [英] How to setup Struts2 within existing Eclipse by maintaining other configuration?

查看:52
本文介绍了如何通过维护其他配置在现有Eclipse中设置Struts2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用 Apache Struts 2 MVC Framework的新手程序员.我想在其中设置Struts 2我现有的Eclipse IDE,并且我不想损害我在Eclipse中所做的其他不同工作.这是我在日食和其他相关工作中要做的事情的列表:

I am a novice programmer in using Apache Struts 2 MVC Framework.I want to setup Struts 2 within my existing Eclipse IDE and I don't want to harm other different works i do in eclipse. Here is a list of things i do in eclipse and other related works:

  1. 我目前正在为Java SE开发人员使用eclipse ide.
  2. 已经使用PDT:在现有Eclipse中用于php项目的Eclipse PHP开发.
  3. 还在现有的eclipse中使用Eclipse CDT:C/C ++开发工具.
  4. 我的计算机包含用于Web开发目的的Apache2服务器上安装的LAMP.

因此,我想在现有Eclipse中设置Struts 2时保持所有这些状态不变.我已经看过许多关于Struts 2的安装指南,但是他们并没有很好地说明与我的情况类似的情况.因此,在完全安装之前,我想在下面获得以下问题的答案:

So, I want keep all of these things intact while setting up Struts 2 within existing eclipse. I've seen many installation guidelines for Struts 2, but they didn't clarify well about situation similar to mine.Therefore, before full installation, i want answers of these questions below:

  1. 我可以在Eclipse IDE中为Java SE(而非EE)开发人员安装Struts 2吗?
  2. 安装Struts 2需要安装Apache Tomcat,此安装是否会与我现有的Apache 2服务器(LAMP附带)产生任何冲突?

推荐答案

是的,您需要安装Java EE Eclipse和Tomcat Web服务器.在这里,您可以创建一个动态Web项目,并使用Maven来管理工件和下载依赖项.查看如何

Yeah, you need Eclipse for Java EE and Tomcat web server installed. There you can create a dynamic web project and use Maven to manage artifacts and download dependencies. See how to Create Struts 2 Web Application With Artifacts In WEB-INF lib and Use Ant To Build The Application

Tomcat服务器默认使用8080端口,但是Apache使用80端口,除非您为这两个端口使用相同的端口,否则它们不会冲突.

Tomcat server by default uses port 8080, but Apache uses 80, unless you use the same port for both they won't conflict.

这篇关于如何通过维护其他配置在现有Eclipse中设置Struts2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆