Because the DataFactory class implements the ServletContextListener interface, it guarantees that its init method is called when the servlet context is first created.
因为DataFactory类实现了ServletContextListener接口,所以可以保证在第一次创建servlet上下文时调用其init方法。
Because the DataFactory class implements the ServletContextListener interface, it guarantees that its init method is called when the servlet context is first created.
因为DataFactory类实现了ServletContextListener接口,所以可以保证在第一次创建servlet上下文时调用其init方法。
应用推荐