开发者

Is it possible to access a Spring Web App on Tomcat at /?

I've managed to set up a web app that uses the Spring MVC framework, and I can access it at http://localhost:8080/S开发者_如何学JAVApringMVCTutorial/. Is it possible though to configure Tomcat so that I can access it at http://localhoust:8080/? If I were to ever use this for a real web app, I wouldn't want to have the extra /.../ after my domain. Thanks


Yes. / is the ROOT webapp. So name it ROOT.war and drop it in the webapps directory.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜