test: use annotation to simplify register servlet

This commit is contained in:
ReaJason
2025-02-19 22:21:17 +08:00
parent 8bb3158fe6
commit 7d567beba9
27 changed files with 47 additions and 1149 deletions
@@ -2,6 +2,7 @@ import org.mozilla.javascript.Context;
import org.mozilla.javascript.Scriptable;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -11,6 +12,7 @@ import java.io.IOException;
* @author ReaJason
* @since 2025/1/30
*/
@WebServlet("/rhino")
public class RhinoServlet extends HttpServlet {
@Override