保存进度!
This commit is contained in:
		@@ -28,9 +28,9 @@
 | 
				
			|||||||
    <dependency>
 | 
					    <dependency>
 | 
				
			||||||
      <groupId>jakarta.servlet</groupId>
 | 
					      <groupId>jakarta.servlet</groupId>
 | 
				
			||||||
      <artifactId>jakarta.servlet-api</artifactId>
 | 
					      <artifactId>jakarta.servlet-api</artifactId>
 | 
				
			||||||
      <version>6.0.0</version>
 | 
					      <version>5.0.0</version>
 | 
				
			||||||
      <scope>provided</scope>
 | 
					      <scope>system</scope>
 | 
				
			||||||
      <!-- <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/servlet-api.jar</systemPath> -->
 | 
					      <systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/servlet-api.jar</systemPath>
 | 
				
			||||||
    </dependency>
 | 
					    </dependency>
 | 
				
			||||||
  </dependencies>
 | 
					  </dependencies>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -43,7 +43,7 @@
 | 
				
			|||||||
          <artifactId>maven-clean-plugin</artifactId>
 | 
					          <artifactId>maven-clean-plugin</artifactId>
 | 
				
			||||||
          <version>3.1.0</version>
 | 
					          <version>3.1.0</version>
 | 
				
			||||||
        </plugin>
 | 
					        </plugin>
 | 
				
			||||||
        <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
 | 
					        <!-- see http://maven.apache.org/ref/current/ven-core/efault-bindings.html#Plugin_bindings_for_war_packaging -->
 | 
				
			||||||
        <plugin>
 | 
					        <plugin>
 | 
				
			||||||
          <artifactId>maven-resources-plugin</artifactId>
 | 
					          <artifactId>maven-resources-plugin</artifactId>
 | 
				
			||||||
          <version>3.0.2</version>
 | 
					          <version>3.0.2</version>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
 * @Author: Kane
 | 
					 * @Author: Kane
 | 
				
			||||||
 * @Date: 2022-08-23 21:28:26
 | 
					 * @Date: 2022-08-23 21:28:26
 | 
				
			||||||
 * @LastEditors: Kane
 | 
					 * @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
 | 
					 * @FilePath: \tomcat-servlet\src\main\java\com\cpic\xim\ServletTest.java
 | 
				
			||||||
 * @Description: 
 | 
					 * @Description: 
 | 
				
			||||||
 * 
 | 
					 * 
 | 
				
			||||||
@@ -22,14 +22,14 @@ import jakarta.servlet.http.HttpSession;
 | 
				
			|||||||
public class ServletTest extends HttpServlet
 | 
					public class ServletTest extends HttpServlet
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /*********************************************
 | 
				
			||||||
     * 测试tomcat 10.x的servlet对象。
 | 
					     * 测试tomcat 10.x的servlet对象。
 | 
				
			||||||
     * 
 | 
					     * 
 | 
				
			||||||
     * @param request
 | 
					     * @param request
 | 
				
			||||||
     * @param response
 | 
					     * @param response
 | 
				
			||||||
     * @exception ServletException
 | 
					     * @exception ServletException
 | 
				
			||||||
     * @exception IOException
 | 
					     * @exception IOException
 | 
				
			||||||
     */
 | 
					     ********************************************/
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public void doGet( HttpServletRequest request, HttpServletResponse response )
 | 
					    public void doGet( HttpServletRequest request, HttpServletResponse response )
 | 
				
			||||||
            throws ServletException, IOException
 | 
					            throws ServletException, IOException
 | 
				
			||||||
@@ -57,6 +57,13 @@ public class ServletTest extends HttpServlet
 | 
				
			|||||||
        writer.write( " " );
 | 
					        writer.write( " " );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /*****************************************************
 | 
				
			||||||
 | 
					     * 
 | 
				
			||||||
 | 
					     * @param request
 | 
				
			||||||
 | 
					     * @param response
 | 
				
			||||||
 | 
					     * @exception ServletException
 | 
				
			||||||
 | 
					     * @exception IOException
 | 
				
			||||||
 | 
					     *****************************************************/
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public void doPost( HttpServletRequest request, HttpServletResponse response )
 | 
					    public void doPost( HttpServletRequest request, HttpServletResponse response )
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user