帮我翻译Servlet接口的init()方法
红色部分我不懂是什么意思,望高手翻译一下,能翻译多少就翻译多少,先谢谢。
void init(ServletConfig config)
throws
ServletException方法说明:
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. The servlet container calls the init method exactly once after instantiating the servlet. The init method must complete successfully before the servlet can receive any requests.
The servlet container cannot place the servlet into service if the init method
1.Throws a ServletException
2.Does not return within a time period defined by the Web server
Parameters:
config - a ServletConfig object containing the servlet's configuration and initialization parameters
Throws:
ServletException - if an exception has occurred that interferes with the servlet's normal operation
------解决方案--------------------
the servlet is being placed into service
servlet正在被装入服务中
exactly once after instantiating the servlet.
实例化servlet后,立即调用init方法进行初始化
cannot place the servlet into service
不能将servlet装入服务
if an exception has occurred that interferes with the servlet's normal operation
一旦产生异常将会导致servlet无法正常运作
我的异常网推荐解决方案:Servlet.service() for servlet default threw exception,http://www.myexception.cn/eclipse/181756.html