本文主要是介绍listener-classcom.tfy.heima.listener.OnlineUserListener/listener-class,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
<?xml version="1.0" encoding="UTF-8"?><web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<listener>
<listener-class>com.tfy.heima.listener.OnlineUserListener</listener-class>
</listener>
<servlet>
<servlet-name>ServletContextAttributeListenerDemo</servlet-name>
<servlet-class>com.tfy.heima.servlet.ServletContextAttributeListenerDemo</servlet-class>
</servlet>
<servlet>
<servlet-name>LoginServlet</servlet-name>
<servlet-class>com.tfy.heima.servlet.LoginServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>KickServlet</servlet-name>
<servlet-class>com.tfy.heima.servlet.KickServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ServletContextAttributeListenerDemo</servlet-name>
<url-pattern>/servlet/ServletContextAttributeListenerDemo</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>LoginServlet</servlet-name>
<url-pattern>/servlet/LoginServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>KickServlet</servlet-name>
<url-pattern>/servlet/KickServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
这篇关于listener-classcom.tfy.heima.listener.OnlineUserListener/listener-class的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!