Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有现有的 Java 项目并想向其中添加 Web 模块。有没有办法在使用 Eclipse 的 Java 项目中添加动态 Web 项目作为模块?
是的你可以。您需要进入您的项目设置,在左侧找到“Project Facets”。然后您可以选中“动态 Web 项目”复选框。确保在点击“应用”之前设置构面,因为以后很难做到。检查方面后,某处将出现“附加配置”按钮。
不过,将 Web 功能添加到现有项目中一直存在问题。尝试一下,如果它不起作用,那么你必须创建一个新项目并复制你的东西。
更详细的信息在这里:http ://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jst.j2ee.doc.user%2Ftopics%2Fcfacets.html