资源简介
apache-tomcat-8.5.24新版tomcat Tomcat 服务器是一个免费的开放源代码的Web 应用服务器,属于轻量级应用服务器,在中小型系统和并发访问用户不是很多的场合下被普遍使用,是开发和调试JSP 程序的首选
代码片段和文件信息
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License Version 2.0
* (the “License“); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package mypackage;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Simple servlet to validate that the Hello World example can
* execute servlets. In the web application deployment descriptor
* this servlet must be mapped to correspond to the link in the
* “index.html“ file.
*
* @author Craig R. McClanahan
*/
public final class Hello extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* Respond to a GET request for the content produced by
* this servlet.
*
* @param request The servlet request we are processing
* @param response The servlet response we are producing
*
* @exception IOException if an input/output error occurs
* @exception ServletException if a servlet error occurs
*/
@Override
public void doGet(HttpServletRequest request
HttpServletResponse response)
throws IOException ServletException {
response.setContentType(“text/html“);
response.setCharacterEncoding(“UTF-8“);
try (PrintWriter writer = response.getWriter()) {
writer.println(““);
writer.println(““);
writer.println(“ta charset=\“UTF-8\“ />“);
writer.println(“tle>Sample Application Servlet Page tle>“);
writer.println(““);
writer.println(““);
writer.println(“yle=\“float: left; padding: 10px;\“>“);
writer.println(““);
writer.println(““);
writer.println(“Sample Application Servlet
“);
writer.println(““);
writer.println(“This is the output of a servlet that is part of“);
writer.println(“the Hello World application.“);
writer.println(“
“);
writer.println(“
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-07-20 11:48 apache-tomcat-8.5.24\
目录 0 2018-07-20 11:48 apache-tomcat-8.5.24\bin\
文件 34738 2017-11-27 13:31 apache-tomcat-8.5.24\bin\bootstrap.jar
文件 1703 2017-11-27 13:31 apache-tomcat-8.5.24\bin\catalina-tasks.xm
文件 15815 2017-11-27 13:31 apache-tomcat-8.5.24\bin\catalina.bat
文件 23315 2017-11-27 13:31 apache-tomcat-8.5.24\bin\catalina.sh
文件 207125 2017-11-27 13:31 apache-tomcat-8.5.24\bin\commons-daemon-native.tar.gz
文件 25145 2017-11-27 13:31 apache-tomcat-8.5.24\bin\commons-daemon.jar
文件 2040 2017-11-27 13:31 apache-tomcat-8.5.24\bin\configtest.bat
文件 1922 2017-11-27 13:31 apache-tomcat-8.5.24\bin\configtest.sh
文件 8509 2017-11-27 13:31 apache-tomcat-8.5.24\bin\daemon.sh
文件 2091 2017-11-27 13:31 apache-tomcat-8.5.24\bin\digest.bat
文件 1965 2017-11-27 13:31 apache-tomcat-8.5.24\bin\digest.sh
文件 7351 2017-11-27 13:31 apache-tomcat-8.5.24\bin\service.bat
文件 3574 2017-11-27 13:31 apache-tomcat-8.5.24\bin\setclasspath.bat
文件 3680 2017-11-27 13:31 apache-tomcat-8.5.24\bin\setclasspath.sh
文件 2020 2017-11-27 13:31 apache-tomcat-8.5.24\bin\shutdown.bat
文件 1902 2017-11-27 13:31 apache-tomcat-8.5.24\bin\shutdown.sh
文件 2022 2017-11-27 13:31 apache-tomcat-8.5.24\bin\startup.bat
文件 1904 2017-11-27 13:31 apache-tomcat-8.5.24\bin\startup.sh
文件 2126336 2017-11-27 13:31 apache-tomcat-8.5.24\bin\tcnative-1.dll
文件 48595 2017-11-27 13:31 apache-tomcat-8.5.24\bin\tomcat-juli.jar
文件 405109 2017-11-27 13:31 apache-tomcat-8.5.24\bin\tomcat-native.tar.gz
文件 114600 2017-11-27 13:31 apache-tomcat-8.5.24\bin\tomcat8.exe
文件 118184 2017-11-27 13:31 apache-tomcat-8.5.24\bin\tomcat8w.exe
文件 4574 2017-11-27 13:31 apache-tomcat-8.5.24\bin\tool-wrapper.bat
文件 5483 2017-11-27 13:31 apache-tomcat-8.5.24\bin\tool-wrapper.sh
文件 2026 2017-11-27 13:31 apache-tomcat-8.5.24\bin\version.bat
文件 1908 2017-11-27 13:31 apache-tomcat-8.5.24\bin\version.sh
目录 0 2018-07-20 11:48 apache-tomcat-8.5.24\conf\
目录 0 2018-07-20 11:48 apache-tomcat-8.5.24\conf\Catalina\
............此处省略732个文件信息
相关资源
- JAVA类小游戏集合压缩包
- android计算器源码压缩包
- android开发ADT压缩包
- Tomcat7.0压缩包
- Apache-cxf 2.2.8压缩包
- (从新整理版)java项目-电信运营计费
- Android压缩包
- 基于SSM的网咖服务系统压缩包
- Eclipse 安装flowable 插件出错,需要的
- Java 解决压缩包中文乱码
- LL1语法分析代码有详细解释,压缩包
- jdk8的完整压缩包,不是exe执行文件,
- 银行账户管理 JAVA
- jpcap压缩包
- JavaCV两个必须jar包:javacpp-1.4.1.jar和
- java重命名RAR压缩包中文件
- Java入门-zip压缩包查看程序(56).zi
- Java入门-从压缩包中提取文件(55)
- Java 获取压缩包详细文件列表
- Java 为RAR压缩包添加注释
- Java 深层文件夹压缩包的释放
- Java 压缩包解压到指定文件夹
- Java 从RAR压缩包中删除文件
- Java 重命名RAR压缩包中的文件
- Java 设置RAR压缩包密码
- java解压包附多级目录的压缩文件(深
- java解压缩RAR压缩包(原理是调用Pro
- java为RAR压缩包添加注释
- java 获取压缩包详细文件列表
- java 从RAR压缩包中删除文件
评论
共有 条评论