问题
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