我们如何将多个项目链接到同一个 Web 应用程序中 [英] How do we link multiple projects into the same web application

查看:51
本文介绍了我们如何将多个项目链接到同一个 Web 应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在具有多个相互依赖的项目的基于 Java 的 Web 应用程序中,我们通常会将 web.xml、log4j.properties 等配置文件放在哪里?我对 Web 应用程序很陌生,但我非常了解单个项目应用程序的包结构.我想知道应用程序将如何在多项目环境中查找 web.xml 位置和其他配置详细信息?

In a java based web-application that has multiple projects which are dependent on each other, where would normally we place configuration files like web.xml , log4j.properties and all? I am very new to web applications, but I pretty well know the package structure of a single project application. I am wondering how the application will look for the web.xml location and other configuration details in a multi-project environment?

推荐答案

您必须构建一个项目并添加对所有其他项目的依赖

You have to build a project and add dependency on all other projects

如果您使用的是 Eclipse单击右键单击主项目 -> 属性 -> Java 构建路径 -> 项目 [选项卡]在这里你可以添加其他项目,祝你好运

if you are using Eclipse click right click on the master project -> properties -> Java Build Path -> Projects [tab] here you can add other projects, good luck

这篇关于我们如何将多个项目链接到同一个 Web 应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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