From 4ce43b02f8d020a38a9646969d20c7e1f9a39172 Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Thu, 25 Aug 2022 11:00:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=BF=9B=E5=BA=A6=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tomcat-servlet/tomcat-servlet/pom.xml | 8 +++---- .../main/java/com/cpic/xim/ServletTest.java | 13 ++++++++--- .../test/java/com/cpic/xim/ServletTest.java | 22 ------------------- 3 files changed, 14 insertions(+), 29 deletions(-) delete mode 100644 tomcat-servlet/tomcat-servlet/src/test/java/com/cpic/xim/ServletTest.java diff --git a/tomcat-servlet/tomcat-servlet/pom.xml b/tomcat-servlet/tomcat-servlet/pom.xml index f36c746..c78c262 100644 --- a/tomcat-servlet/tomcat-servlet/pom.xml +++ b/tomcat-servlet/tomcat-servlet/pom.xml @@ -28,9 +28,9 @@ jakarta.servlet jakarta.servlet-api - 6.0.0 - provided - + 5.0.0 + system + ${pom.basedir}/src/main/webapp/WEB-INF/lib/servlet-api.jar @@ -43,7 +43,7 @@ maven-clean-plugin 3.1.0 - + maven-resources-plugin 3.0.2 diff --git a/tomcat-servlet/tomcat-servlet/src/main/java/com/cpic/xim/ServletTest.java b/tomcat-servlet/tomcat-servlet/src/main/java/com/cpic/xim/ServletTest.java index 2751b99..3511858 100644 --- a/tomcat-servlet/tomcat-servlet/src/main/java/com/cpic/xim/ServletTest.java +++ b/tomcat-servlet/tomcat-servlet/src/main/java/com/cpic/xim/ServletTest.java @@ -2,7 +2,7 @@ * @Author: Kane * @Date: 2022-08-23 21:28:26 * @LastEditors: Kane - * @LastEditTime: 2022-08-25 09:55:47 + * @LastEditTime: 2022-08-25 10:45:45 * @FilePath: \tomcat-servlet\src\main\java\com\cpic\xim\ServletTest.java * @Description: * @@ -22,14 +22,14 @@ import jakarta.servlet.http.HttpSession; public class ServletTest extends HttpServlet { - /** + /********************************************* * 测试tomcat 10.x的servlet对象。 * * @param request * @param response * @exception ServletException * @exception IOException - */ + ********************************************/ @Override public void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException @@ -57,6 +57,13 @@ public class ServletTest extends HttpServlet writer.write( " " ); } + /***************************************************** + * + * @param request + * @param response + * @exception ServletException + * @exception IOException + *****************************************************/ @Override public void doPost( HttpServletRequest request, HttpServletResponse response ) { diff --git a/tomcat-servlet/tomcat-servlet/src/test/java/com/cpic/xim/ServletTest.java b/tomcat-servlet/tomcat-servlet/src/test/java/com/cpic/xim/ServletTest.java deleted file mode 100644 index 00884be..0000000 --- a/tomcat-servlet/tomcat-servlet/src/test/java/com/cpic/xim/ServletTest.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * @Author: Kane - * @Date: 2022-08-23 23:58:05 - * @LastEditors: Kane - * @LastEditTime: 2022-08-24 21:14:09 - * @FilePath: \tomcat-servlet\src\test\java\com\cpic\xim\ServletTest.java - * @Description: - * - * Copyright (c) ${2022} by Kane, All Rights Reserved. - */ -package com.cpic.xim; - -import org.junit.Test; - -public class ServletTest -{ - @Test - public void servletTest() - { - - } -}