1. First, the pure HTML file must have an entry index.html 2. Tomcat does not need to specify web.xml, because even if there is no web.xml in your file, it will read the web.xml in the conf directory, and the entry of index.html is specified in this file. 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 it 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 publish the war package directly, but if you want to publish a pure HTML file, you must create a new WEB-INF\web.xml file, otherwise there is no installation deployment The writing method of web.xml file is also very simple. Pay attention to the format and do not use Chinese characters. <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/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>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list>--> </web-app> The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Detailed explanation of the use of MySQL paradigm
>>: js to achieve simple accordion effect
Today's Tasks 1. Choice of Linux distribution...
In MySQL, fields of char, varchar, and text types...
This article records the detailed tutorial of MyS...
Preface Bash has many important built-in commands...
1. Problem Description Today I need to check the ...
Download the installation package from the offici...
Today I experimented with the network settings un...
In Black Duck's 2017 open source survey, 77% ...
Preface: In the previous article, we mainly intro...
What is a generator? A generator is some code tha...
The specific code is as follows: <!DOCTYPE htm...
Table of contents 1. Introduction to pid-file 2.S...
Create table & create index create table tbl1...
1. Introduction Vagrant is a tool for building an...
First of all, for security reasons, JavaScript ca...