How to set SPRING MVC web application context as R

2019-07-19 00:46发布

I have SPRING MVC web application (my.war). It deploys on Tomcat 6 server to http://host/my/ folder. How can I change this to be accessible this web application in http://host/ ?

3条回答
来,给爷笑一个
2楼-- · 2019-07-19 01:05

Look at the /ROOT directory under /webapps. In default installation it holds bunch of exploded JSPs and /WEB-INF subdirectory that are accessible from main context.

查看更多
三岁会撩人
3楼-- · 2019-07-19 01:16

remove ROOT folder and make your app as ROOT.war deploy it as ROOT folder

查看更多
放我归山
4楼-- · 2019-07-19 01:22

You need to deploy your web application as ROOT.war

Have a look at this post which describes the whole topic pretty well: http://benhutchison.wordpress.com/2008/07/30/how-to-configure-tomcat-root-context/

查看更多
登录 后发表回答