java EE 监听器

生命周期监听器属性改变监听器都必须使用@WebListener或在web.xml中声明,容器才会知道要加载、读取相关的监听器。

原文地址:https://www.cnblogs.com/Mike_Chang/p/10061805.html