保存进度!
This commit is contained in:
		@@ -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-24 17:54:54
 | 
					 * @LastEditTime: 2022-08-24 22:26:43
 | 
				
			||||||
 * @FilePath: \tomcat-servlet\src\main\java\com\cpic\xim\ServletTest.java
 | 
					 * @FilePath: \tomcat-servlet\src\main\java\com\cpic\xim\ServletTest.java
 | 
				
			||||||
 * @Description: 
 | 
					 * @Description: 
 | 
				
			||||||
 * 
 | 
					 * 
 | 
				
			||||||
@@ -10,16 +10,24 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
package com.cpic.xim;
 | 
					package com.cpic.xim;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
import java.io.IOException;
 | 
					import java.io.IOException;
 | 
				
			||||||
import java.io.PrintWriter;
 | 
					import java.io.PrintWriter;
 | 
				
			||||||
import jakarta.servlet.*;
 | 
					import jakarta.servlet.ServletException;
 | 
				
			||||||
import jakarta.servlet.http.*;
 | 
					import jakarta.servlet.http.HttpServlet;
 | 
				
			||||||
import javax.naming.*;
 | 
					import jakarta.servlet.http.HttpServletRequest;
 | 
				
			||||||
 | 
					import jakarta.servlet.http.HttpServletResponse;
 | 
				
			||||||
 | 
					import jakarta.servlet.http.HttpSession;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class ServletTest extends HttpServlet
 | 
					public class ServletTest extends HttpServlet
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * 测试tomcat 10.x的servlet对象。
 | 
				
			||||||
 | 
					     * 
 | 
				
			||||||
 | 
					     * @param request
 | 
				
			||||||
 | 
					     * @param response
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public void doGet( HttpServletRequest request, HttpServletResponse response )
 | 
					    public void doGet( HttpServletRequest request, HttpServletResponse response )
 | 
				
			||||||
            throws ServletException, IOException
 | 
					            throws ServletException, IOException
 | 
				
			||||||
@@ -46,4 +54,10 @@ public class ServletTest extends HttpServlet
 | 
				
			|||||||
        writer.write( "</html>" );
 | 
					        writer.write( "</html>" );
 | 
				
			||||||
        writer.write( " " );
 | 
					        writer.write( " " );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Override
 | 
				
			||||||
 | 
					    public void doPost( HttpServletRequest request, HttpServletResponse response )
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
 * @Author: Kane
 | 
					 * @Author: Kane
 | 
				
			||||||
 * @Date: 2022-08-23 23:58:05
 | 
					 * @Date: 2022-08-23 23:58:05
 | 
				
			||||||
 * @LastEditors: Kane
 | 
					 * @LastEditors: Kane
 | 
				
			||||||
 * @LastEditTime: 2022-08-24 00:03:40
 | 
					 * @LastEditTime: 2022-08-24 21:14:09
 | 
				
			||||||
 * @FilePath: \tomcat-servlet\src\test\java\com\cpic\xim\ServletTest.java
 | 
					 * @FilePath: \tomcat-servlet\src\test\java\com\cpic\xim\ServletTest.java
 | 
				
			||||||
 * @Description: 
 | 
					 * @Description: 
 | 
				
			||||||
 * 
 | 
					 * 
 | 
				
			||||||
@@ -10,7 +10,7 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
package com.cpic.xim;
 | 
					package com.cpic.xim;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import org.junit.*;
 | 
					import org.junit.Test;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class ServletTest
 | 
					public class ServletTest
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user