level 3
小西音♬
楼主
package com.lx;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class MyFirstServlet implements Servlet{
public void init(ServletConfig config)throws ServletException{
}
public ServletConfig getServletConfig(){
return null;
}
public void service(ServletRequest req,ServletResponse res)throws ServletException,java.io.IOException{
System.out.println("hello,world");
}
public String getServletInfo(){
return null;
}
public void destory(){
}
}
编译出错,提示MyFristServlet类不是抽象类,且未覆盖destory()的方法。。
急,求大神解决!
2016年04月07日 03点04分
1
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class MyFirstServlet implements Servlet{
public void init(ServletConfig config)throws ServletException{
}
public ServletConfig getServletConfig(){
return null;
}
public void service(ServletRequest req,ServletResponse res)throws ServletException,java.io.IOException{
System.out.println("hello,world");
}
public String getServletInfo(){
return null;
}
public void destory(){
}
}
编译出错,提示MyFristServlet类不是抽象类,且未覆盖destory()的方法。。
急,求大神解决!