Configure the default homepage of JSP and the default homepage of JSP
1. This is my project name
You can configure the default homepage in the web. xml file.
We need to build a WEB-INF folder under our web project.
Copy the web. xml file that comes with the server, which is under conf, edit the xml file, and delete all the useful elements in the file.
The yellow homepage 1.html is the default homepage that needs to be set by ourselves.
The running result is as follows:
Now we are done!
The working principle is that the server will automatically start looking for configuration files from the inside. If there is a built-in configuration file, the server will use the built-in configuration files (those files under conf)
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.