How do we link multiple projects into the same web application

て烟熏妆下的殇ゞ 提交于 2019-12-25 06:55:40

问题


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?


回答1:


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

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




回答2:


As per my understanding multiple projects/modules have only one web based project and that require web.xml file, all other projects/module could be database/model or any other utility.



来源:https://stackoverflow.com/questions/26700393/how-do-we-link-multiple-projects-into-the-same-web-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!