如何在Eclipse中的现有Java项目中添加Web项目模块 [英] How to add web project module in existing java project in eclipse

查看:115
本文介绍了如何在Eclipse中的现有Java项目中添加Web项目模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有现有的Java项目,并想向其中添加Web模块.有什么方法可以使用Eclipse将动态Web项目添加为Java项目中的模块?

I have existing Java project and want to add web module to it. Is there any way to add dynamic web project as a module in a Java project using Eclipse?

推荐答案

是的,可以.您需要转到项目设置,在左侧找到项目构面".然后,您可以选中动态Web项目"复选框.在点击应用"之前,请确保先设置构面,因为稍后将很难进行.检查构面后,某处将有其他配置"按钮.

Yes, you can. You need to go to your project settings, find "Project Facets" on the left. Then you can check "Dynamic Web Project" checkbox. Make sure to set up the facet before you hit "Apply" because it will be hard to do later on. There will be "additional configuration" button somewhere once you check the facet.

尽管将Web功能添加到现有项目中始终存在问题.尝试一下,如果它不起作用,则必须创建一个新项目并复制您的内容.

Adding the web functionality to existing project has always been buggy though. Try it and if it doesn't work then you'd have to create a new project and copy your stuff over.

更多详细信息在这里:

More detailed info is here: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jst.j2ee.doc.user%2Ftopics%2Fcfacets.html

这篇关于如何在Eclipse中的现有Java项目中添加Web项目模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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