mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-23 07:21:53 +08:00
test: use annotation to simplify register servlet
This commit is contained in:
@@ -2,6 +2,7 @@ package jakarta;
|
||||
|
||||
import jakarta.servlet.ServletException;
|
||||
import jakarta.servlet.annotation.MultipartConfig;
|
||||
import jakarta.servlet.annotation.WebServlet;
|
||||
import jakarta.servlet.http.HttpServlet;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
@@ -22,6 +23,7 @@ import java.nio.file.Files;
|
||||
maxFileSize = 1024 * 1024 * 5,
|
||||
maxRequestSize = 1024 * 1024 * 5 * 5
|
||||
)
|
||||
@WebServlet("/upload")
|
||||
public class UploadServlet extends HttpServlet {
|
||||
|
||||
private static final String UPLOAD_DIRECTORY = "/";
|
||||
|
||||
Reference in New Issue
Block a user