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()
- {
-
- }
-}