1. First, pure html file must have an entry
2. Tomcat does not need to be specified, because even if your file does not exist, it will read the entry specified in the conf directory.
For Tomcat, just deploy the original file to the webapps\ directory, or create a new xml file in the \conf\Catalina\localhost directory and point to the html page
<?xml version='1.0' encoding='utf-8'?> <Context docBase="C:\Users\jiashubing\Desktop\dist" reloadable="false" privileged="true" antiResourceLocking="false" antiJARLocking="false"> </Context>
3. If it is Weblogic, you can directly publish the war package, but if you want to publish a pure html file, you must create a new WEB-INF\ file, otherwise there will be no installation and deployment.
The writing method of the file is also very simple. Pay attention to the format and do not have Chinese characters.
<web-app xmlns="/xml/ns/javaee" xmlns:xsi="http:///2001/XMLSchema-instance" xsi:schemaLocation="/xml/ns/javaee /xml/ns/javaee/web-app_3_0.xsd" version="3.0"> <welcome-file-list> <welcome-file>index</welcome-file> </welcome-file-list> <!--Or write it in this form--> <!--<welcome-file-list> <welcome-file></welcome-file> <welcome-file></welcome-file> <welcome-file></welcome-file> </welcome-file-list>--> </web-app>
The above is all the content of this article. I hope it will be helpful to everyone's study and I hope everyone will support me more.