有myProject.war
忽略文件夹名称
因此,为了在本地的Tomcat运行它,我应该使用下列网址:
http://localhost:8099/myProject/index.html
同样的问题是我的远程定点我要补充文件夹的名称,如:
http://mySiteURL/myProject/index.html
web.xml文件内容:
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.xhtml</welcome-file>
</welcome-file-list>
怎么办,我的网站索引页的访问只是网址:
http://mySiteURL/
谢谢
可能重复[如何设置Spring MVC Web应用程序上下文在Tomcat根(/)?(http://stackoverflow.com/questions/5204383/how-to-set-spring-mvc-web-application-context-as-root-on-tomcat) –