test: use annotation to simplify register servlet

This commit is contained in:
ReaJason
2025-02-19 22:21:17 +08:00
parent 6ee9e31aa8
commit 358184f71b
27 changed files with 47 additions and 1149 deletions
@@ -1,6 +1,7 @@
import org.mvel2.MVEL;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -10,6 +11,7 @@ import java.io.IOException;
* @author ReaJason
* @since 2024/12/14
*/
@WebServlet("/mvel")
public class MVELServlet extends HttpServlet {
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {