[英]How to change the url of my webapp in tomcat server?
eclipse中的目錄結構是MyProjectName( WebContent( META-INF( MANIFEST.MF ), app( appname( index.html ) ), WEB-INF(web.xml) ) )
我可以使用http://
訪問tomcat7上的項目localhost
:8080/MyProjectName/app/appname/index.htmlhttp://
我想使用localhost
:8080/MyProjectName/app/appname/index.htmlhttp://
localhost
:8080/MyProjectName/
我沒有使用html / js / css以外的任何其他代碼,並且所有代碼僅在Webapps目錄中。
Spring,Tomcat7,Windows7是平台。
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>/app/appname/index.html</welcome-file>
</welcome-file-list>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.