I deploy a .war application from Eclipse by adding the "Dynamic Web Module" facet, then right-clicking on the project and selecting "Run As -> Run on Server".
This works great, but by default the project is deployed to the /web
context of Tomcat, because the project name is web
. Is there a way I can deploy from Eclipse to Tomcat without changing the project name to ROOT?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…