只有父类的init方法才有创建servletConfig与servletContext的能力

如果重写了父类的init方法 但又没有显示调用父类的init方法 那么子类无法使用servletContext 因为 子类方法没有创建出 servletConfig

猜你喜欢

转载自www.cnblogs.com/classmethond/p/10226102.html