1、首先纯html文件,得有一个入口 index.html
2、tomcat是不需要指定web.xml的,因为即使你的文件里没有web.xml,也会读取conf 目录下的web.xml,在这个文件里边指定了index.html的入口
tomcat的话只要将原文件部署到 webapps\ 目录下,或者在\conf\catalina\localhost 目录下新建xml文件,指向html页面
<?xml version='1.0' encoding='utf-8'?> <context docba="c:\urs\jiashubing\desktop\dist" reloadable="fal" privileged="true" antiresourcelocking="fal" antijarlocking="fal"> </context>
3、如果是web草妹妹logic的话, 可以直接发布war包,但是如果想要发布纯html文件,必须要新建web-inf\web.xml 文件,否则无安装部署
web.xml 文件的写法也很简单,注意格式,不要有中文字符
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="/d/file/titlepic/xmlschema-instance" xsi:schemalocation="/d/file/titlepic/ 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> <!--或者写成这种形式--> <!--<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>
以上就运动会结束语是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持www.887551.com。
本文发布于:2023-04-07 13:56:53,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/zuowen/c5bce703949bf03a0211cf41c70dba59.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:Tomcat和Weblogic部署纯html文件过程解析.doc
本文 PDF 下载地址:Tomcat和Weblogic部署纯html文件过程解析.pdf
留言与评论(共有 0 条评论) |