What about the legendary Beijing?
--- Xingyunpi
In JSP web project, the keyword file name can be configured in web-inf. in general, the keyword is index.html.
Problems:
First, go to atathome/CONF/server. A virtual directory admin is configured in XML. sorina, pointing to a folder in the project, such as test (project name)/Webmaster/admin/. At this time, Access Admin. SORINA/ingress. However, use a relative path for access, such as Access:Admin. Sorina/login/At the same time, my goal is to accessTest (project name)/Webmaster/admin/login/list_1_1.html,However404Error.
Solution:
It seems that using this method of relative path access to configure welcome-file is not feasible.Tomcathome/CONF/Web. xml. The default value is:
<Welcome-file-List> <welcome-File> index.html </welcome-File> <welcome-File> index.htm </welcome-File> <welcome-File> index. JSP </welcome-File> </welcome-file-List>
Changed:
<Welcome-file-List> <welcome-File> index.html </welcome-File> <welcome-File> index.htm </welcome-File> <welcome-File> list_detail 1.html </welcome -File> <welcome-File> index. JSP </welcome-File> </welcome-file-List>
At the same timeWEB-INF/Web. xmlConfigure:
<Welcome-file-List> <welcome-File> index. JSP </welcome-File> <welcome-File> list_00001.html </welcome-File> <welcome-File> index.html </welcome-File> </welcome-file-List>
In this way, access is normal.