Tomcat :web 应用服务器软件 tomcat ——> java ——> JAVA_HOME 共享数据 —— >TCP / IP 里面服务器软件(容器:将servlet对象创建 / jsp——> 翻译成Java文件——> 编译成class文件) 服务器:Tomcat(免费) / Jboss / netty / Jetty / …
tomcat目录结构:
Webapp:存放网站信息(内容都是以目录形式存在的) 默认访问 ROOT(tomcat_home) index.jsp(欢迎页) ROOT / docs / ... WEB-INF classes:存放字节码文件的 lib:存放jar包 网站的配置信息 web.xml(配置 servlet / 初始化参数 /) html/css/js conf:tomcat配置目录 wen.xml :(定义全局参数 / servlet 默认配置:defaultServlet) servlet.xml:服务器配置:更改端口 work:里面存放jsp文件----->hello.jsp----->_hello_jsp.java------>class文件 bin:执行目录访问tomcat(启动了) http://locathost:8080
http:// http协议——>tomcat——>发送一个请求(request)携带当前访问数据类型支持的语言
localhost:本地默认域名(127.0.0.1) 8080:tomcat默认端口 qq:5555 mysql:3306 …
web.xml文件中配置了首页: http://locathost:8080
<welcome-file-list> <welcome-file>index.htm</welcome-file> <welcome-file>index.html</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list>