tomcat 访问去掉项目名 直接访问 localhsot

1.eclipse->项目->右键->Properties->Web Project Setting->context root 设置为"/"或者""

2.tomcat5.0/6.0:<Host></Host>间加了一句<Context path="" docBase="/fts" debug="0" reloadable="true"/>

3.tomcat7.0 <Host></Host>间加了一句<Context path="/" docBase="fts" debug="0" reloadable="true"/>

转载于:https://my.oschina.net/secyaher/blog/274420

猜你喜欢

转载自blog.csdn.net/weixin_33889665/article/details/91967170
今日推荐