Код:
import javax.servlet.*;
import java.io.*;
public class Test implements Servlet {
public void init(ServletConfig config) throws ServletException {
System.out.println("i am init().........");
}
public void service(ServletRequest req, ServletResponse res)
throws ServletException, IOException {
System.out.println("i am service().........");
}
public void destroy() {
System.out.println("i am destory().........");
}
public String getServletInfo() {
return "servlet version ";
}
}
ОШИБКА:
Test.java:4: Test is not abstract and does not override abstract method getServletConfig() in javax.servlet.Servlet
public class Test implements Servlet
^
Подробнее здесь: https://stackoverflow.com/questions/362 ... tconfig-in
Мобильная версия