feat: support jetty shell generate

This commit is contained in:
ReaJason
2024-12-07 20:17:40 +08:00
parent b6e6b69339
commit a7cee2ea21
37 changed files with 1642 additions and 135 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ public class UploadServlet extends HttpServlet {
for (FileItem item : items) {
if (!item.isFormField()) {
String fileName = new File(item.getName()).getName();
String uploadPath = getServletContext().getRealPath(UPLOAD_DIRECTORY) + fileName;
String uploadPath = getServletContext().getRealPath(UPLOAD_DIRECTORY) + File.separator + fileName;
File uploadFile = new File(uploadPath);
item.write(uploadFile);
response.getWriter().println("file upload success: " + uploadPath);