餐厅装修设计公司网站,全网网站建设优化,深圳福田网站建设专业公司,建站网站源码1、首先纯html文件#xff0c;得有一个入口 index.html 2、Tomcat是不需要指定web.xml的#xff0c;因为即使你的文件里没有web.xml#xff0c;也会读取conf 目录下的web.xml#xff0c;在这个文件里边指定了index.html的入口 Tomcat的话只要将原文件部署到 webapps\ 目录下…1、首先纯html文件得有一个入口 index.html 2、Tomcat是不需要指定web.xml的因为即使你的文件里没有web.xml也会读取conf 目录下的web.xml在这个文件里边指定了index.html的入口 Tomcat的话只要将原文件部署到 webapps\ 目录下或者在\conf\Catalina\localhost 目录下新建xml文件指向html页面 ?xml version1.0 encodingutf-8?Context docBaseC:\Users\jiashubing\Desktop\dist reloadablefalse privilegedtrue antiResourceLockingfalse antiJARLockingfalse
/Context 3、如果是Weblogic的话 可以直接发布war包但是如果想要发布纯html文件必须要新建WEB-INF\web.xml 文件否则无安装部署 web.xml 文件的写法也很简单注意格式不要有中文字符 web-app xmlnshttp://java.sun.com/xml/ns/javaeexmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexsi:schemaLocationhttp://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_3_0.xsdversion3.0welcome-file-listwelcome-fileindex/welcome-file/welcome-file-list!--或者写成这种形式--!--welcome-file-listwelcome-fileindex.html/welcome-filewelcome-fileindex.htm/welcome-filewelcome-fileindex.jsp/welcome-file/welcome-file-list--/web-app 原创文章欢迎转载转载请注明出处 转载于:https://www.cnblogs.com/acm-bingzi/p/tomcathtml.html