简体   繁体   English

Eclipse indigo Struts 2安装

[英]Eclipse indigo Struts 2 installation

I'm new to J2EE, can anyone tell me how to install Struts 2 in Eclipse Indigo? 我是J2EE新手,谁能告诉我如何在Eclipse Indigo中安装Struts 2? I have tried many URLs, none of them were working. 我尝试过很多网址,但都没有。 Could anyone, please, give me a valid URL? 有人可以给我一个有效的网址吗?

You don't "install Struts 2 in Eclipse", you have a project that uses Struts 2 in Eclipse. 你没有“在Eclipse中安装Struts 2”,你有一个在Eclipse中使用 Struts 2的项目。

You either: 你要么:

  1. Get all the dependencies yourself and add them to your project, or 自己获取所有依赖项并将它们添加到项目中,或者
  2. Use Maven and let the computer do what computers are good at. 使用Maven,让计算机做计算机擅长的事情。

For option 1, I'd recommended using the struts-blank application that ships with the distro. 对于选项1,我建议使用发行版附带的struts-blank应用程序。 Optionally, you could read some of the creating a Struts 2 application manually , often useful for getting started. 或者,您可以手动阅读一些创建Struts 2应用程序 ,通常对入门有用。

For option 2, you could try using one of the Maven plugins for Eclipse (eg, m2eclipse ), and possibly following the creating a Struts 2 project using Maven docs. 对于选项2,您可以尝试使用Eclipse的Maven插件之一(例如, m2eclipse ),并可能使用Maven文档创建Struts 2项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM