我的环境码头 8.1
public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
//this line prints org.eclipse.jetty.server.Request
System.out.println("class is "+request.getClass().getName());
org.eclipse.jetty.server.Request jettyRequest = (org.eclipse.jetty.server.Request)request;
//request.getServletContext();//this line fails with noSuchMethodError
jettyRequest.getServletContext(); // this line works
...
谁能解释一下这个……?