javaweb home page

A concept

Two principles

Three use

File 1) set up a website page resource storage folder

Need to mark pages stored in the project files inside the folder, otherwise not visit the project page

2) home page settings

Set the home page in the web.xml file

    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

3) home storage location

Do not put web-INF below, or home settings fail

4)index.html和index.jsp

The former do not need to configure web.xml home page, which requires

Published 23 original articles · won praise 3 · Views 4892

Guess you like

Origin blog.csdn.net/weixin_38615170/article/details/90406083