从
javadoc:
/**
*
* A convenience method which can be overridden so that there's no need
* to call super.init(config)
.
*
*
Instead of overriding {@link #init(ServletConfig)}, simply override
* this method and it will be called by
* GenericServlet.init(ServletConfig config)
.
* The ServletConfig
object can still be retrieved via {@link
* #getServletConfig}.
*
* @exception ServletException if an exception occurs that
* interrupts the servlet's
* normal operation
*
*/
所以它什么都不做,只是一个方便.