J2EE错误配置:缺少Servlet映射被标记为漏洞,指出“没有相应的Servlet映射,将无法访问web.xml中定义的Servlet”。在我的restlet api中。它为此抱怨:
<servlet>
<servlet-name>BootServlet</servlet-name>
<servlet-class>bootstrap.servlet.BootServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
我的BootServlet是:
public class BootServlet extends HttpServlet
{
private static final long serialVersionUID = 1L;
public void init ()
{
//Initializes the servlet and subsequently calls
}
public void destroy ()
{
//Destroys the servlet and subsequently calls
}
}
我需要为此添加一个来修复具有此漏洞的api吗?根据要求,它工作正常,没有任何映射。