Java Web Day 1

TomCat 环境的搭建

常见的状态码:200:正常  403:权限不足  404:资源不存在  500:服务器错误(代码错误)

自己的项目存储再TomCat中的Webapps里面

自己的项目中必存在WEB-INF这个文件夹,其中还必须包含web.xml这个文件。

<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.xhtml</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

这种可以用来设置首页面是什么,并且顺序是由上而下的。

相关文章

一 、安装solr 环境说明:centos 7.3,solr 6.6,zookeeper3...
tomcat 日志说明 配置文件server.xml 默认日志格式为 推荐使...
在实际生产环境中,tomcat的 catalina.out日志默认是不切割的...
简介: SSL 协议的3个特性: 保密:通过SSL链接传输的数据是...
遵循Java Servlet 规范第4节中的建议 ,Apache Tomcat实现了...