@Overwritepublic void init( ) throws ServletException { // TODO Auto-generated method stub ServletConfig config = this.getServletConfig(); classname = this.getInitParameter("classname"); url = this.getInitParameter("url"); username = this.getInitParameter("username"); userpassword = this.getInitParameter("userpassword"); System.out.print(classname+" "+url+" "+username+" "+userpassword);}
本文介绍了一个Servlet初始化方法,用于获取并打印配置参数包括类名、URL、用户名和密码。
360

被折叠的 条评论
为什么被折叠?



