資源簡介
我自己也在用,還不錯的。這個也是項目中使用到的,大家放心使用
代碼片段和文件信息
/*
?*?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“);
????????PrintWriter?writer?=?response.getWriter();
????????writer.println(““);
????????writer.println(““);
????????writer.println(“tle>Sample?Application?Servlet?Page tle>“);
????????writer.println(““);
????????writer.println(““);
????????writer.println(““);
????????writer.println(““);
????????writer.println(““);
????????writer.println(“
“);
????????writer.println(“ “);
????????writer.println(““);
????????writer.println(“Sample?Application?Servlet
“);
????????writer.println(“This?is?the?output?of?a?servlet?that?is?part?of“);
????????writer.println(“the?Hello?World?application.“);
????????writer.println(“ “);
????????writer.println(“ “);
????????writer.println(“
“);
????????writer.println(““);
????????writer.println(““);
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????12571??2017-05-18?21:41??apache-tomcat-7.0.47\backup\catalina.policy
?????文件???????6156??2017-05-18?21:41??apache-tomcat-7.0.47\backup\catalina.properties
?????文件???????1428??2017-05-18?21:41??apache-tomcat-7.0.47\backup\context.xm
?????文件???????6577??2017-05-18?21:41??apache-tomcat-7.0.47\backup\server.xm
?????文件???????1566??2017-05-18?21:41??apache-tomcat-7.0.47\backup\tomcat-users.xm
?????文件?????167512??2017-05-18?21:41??apache-tomcat-7.0.47\backup\web.xm
????.......?????28641??2013-10-18?13:19??apache-tomcat-7.0.47\bin\bootstrap.jar
????.......??????2168??2013-10-18?13:19??apache-tomcat-7.0.47\bin\catalina-tasks.xm
????.......?????13217??2013-10-18?13:19??apache-tomcat-7.0.47\bin\catalina.bat
????.......?????20483??2013-10-18?13:19??apache-tomcat-7.0.47\bin\catalina.sh
????.......????204944??2013-10-18?13:19??apache-tomcat-7.0.47\bin\commons-daemon-native.tar.gz
????.......?????24283??2013-10-18?13:19??apache-tomcat-7.0.47\bin\commons-daemon.jar
????.......??????2131??2013-10-18?13:19??apache-tomcat-7.0.47\bin\configtest.bat
????.......??????1982??2013-10-18?13:19??apache-tomcat-7.0.47\bin\configtest.sh
????.......??????1342??2013-10-18?13:19??apache-tomcat-7.0.47\bin\cpappend.bat
????.......??????7940??2013-10-18?13:19??apache-tomcat-7.0.47\bin\daemon.sh
????.......??????2178??2013-10-18?13:19??apache-tomcat-7.0.47\bin\digest.bat
????.......??????2021??2013-10-18?13:19??apache-tomcat-7.0.47\bin\digest.sh
????.......??????6338??2013-10-18?13:19??apache-tomcat-7.0.47\bin\service.bat
????.......??????3264??2013-10-18?13:19??apache-tomcat-7.0.47\bin\setclasspath.bat
????.......??????3524??2013-10-18?13:19??apache-tomcat-7.0.47\bin\setclasspath.sh
????.......??????2111??2013-10-18?13:19??apache-tomcat-7.0.47\bin\shutdown.bat
????.......??????1960??2013-10-18?13:19??apache-tomcat-7.0.47\bin\shutdown.sh
????.......??????2112??2013-10-18?13:19??apache-tomcat-7.0.47\bin\startup.bat
????.......??????1961??2013-10-18?13:19??apache-tomcat-7.0.47\bin\startup.sh
????.......???1589760??2013-10-18?13:19??apache-tomcat-7.0.47\bin\tcnative-1.dll
????.......?????38682??2013-10-18?13:19??apache-tomcat-7.0.47\bin\tomcat-juli.jar
????.......????286622??2013-10-18?13:19??apache-tomcat-7.0.47\bin\tomcat-native.tar.gz
????.......????103936??2013-10-18?13:19??apache-tomcat-7.0.47\bin\tomcat7.exe
????.......????104448??2013-10-18?13:19??apache-tomcat-7.0.47\bin\tomcat7w.exe
............此處省略1272個文件信息
評論
共有 條評論