我想使用 Eclipse 编写 Java servlet,并计划使用 Tomcat 部署它们.我想我可以使用与 Eclipse 捆绑在一起的 Ant 构建项目.我有标准的 Eclipse IDE.在 Eclipse 中进行 Servlet 开发有哪些选择?我需要对 Eclipse 进行哪些更改?我需要安装插件吗?
I would like to program Java servlets using Eclipse and I plan on deploying them using Tomcat. I think I can build the projects using Ant which is bundled with Eclipse. I have the standard Eclipse IDE. What options do I have for doing Servlet development in Eclipse? What changes do I need to make to Eclipse? Do I need to install a plug-in?
推荐答案你需要安装一个插件,eclipse 基金会有一个免费的,叫做 网络工具平台.它具有您需要的所有开发功能.
You need to install a plugin, There is a free one from the eclipse foundation called the Web Tools Platform. It has all the development functionality that you'll need.
您可以获得 Java EE 版 eclipse 并预先安装它.
You can get the Java EE Edition of eclipse with has it pre-installed.
要创建并运行您的第一个 servlet:
To create and run your first servlet:
那应该对你有用.如果您愿意,您可以使用 ant 在这里构建,但 eclipse 将实际执行构建并自动将更改部署到服务器.使用 Tomcat,您可能需要不时地重新启动它,具体取决于更改.
That should do it for you. You can use ant to build here if that's what you'd like but eclipse will actually do the build and automatically deploy the changes to the server. With Tomcat you might have to restart it every now and again depending on the change.
更多推荐
您如何使用 Eclipse 开发 Java Servlet?
发布评论