转自:https://blog.csdn.net/dong945221578/article/details/71429735
PS:看来同是做IPTV项目的
package com.example.servlet;
import org.apache.axis.transport.http.AxisServlet;
@javax.servlet.annotation.WebServlet(
urlPatterns = "/iptv/*",
loadOnStartup = 1,
name = "AxisServlet"
)
public class WebServlet extends AxisServlet {
//无具体代码,使用注解的形式
}
添加注解 @ServletComponentScan //扫描自定义的WebFilter和WebListener,否则无法扫描到