package yorbest.vip.listener;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebInitParam;
import javax.servlet.annotation.WebListener;
@WebListener("MyListener")
public class MyListener implements ServletContextListener {
@Override
public void contextInitialized(ServletContextEvent arg0) {
// TODO Auto-generated method stub
System.out.println("★★★ ServletContext初始化监听器开始 ★★★");
String value=arg0.getServletContext().getInitParameter("Spring");
System.out.println("★★★"+value+"★★★");
}
@Override
public void contextDestroyed(ServletContextEvent arg0) {
// TODO Auto-generated method stub
System.out.println("★★★ ServletContext销毁监听器开始 ★★★");
}
}
最近下载更多
一只小鲤鱼 LV8
2021年6月2日
鸦葱 LV4
2021年5月7日
rongfan LV14
2021年4月6日
wuyingya12 LV8
2021年1月14日
1515355665 LV7
2020年7月2日
guoyan LV12
2020年6月14日
1229290378 LV8
2020年6月12日
mahuandong LV16
2020年4月18日
hxx88781143 LV8
2020年4月9日
不停的奔跑 LV20
2020年3月27日

最近浏览