690017359
2017-11-03 16:01
第一个异常:
Servlet should have a mapping less... (Ctrl+F1)
Checks if all servlets have mappings
第二个异常:Cannot resolve Servlet 'ListServlet' less... (Ctrl+F1)
This inspection lets you spot the following problems that might occur in descriptors that are used to deploy your Web Module to a server:
References to the non-instantiable classes
References to the classes that do not extend required class
References to classes with inappropriate scope
Empty tag and attribute values
Tag and attribute values that do not match required pattern (e.g. Java Identifiers)
Tags that do not include required children tags or attributes
Tags that define objects with duplicate names
你没有导入你的servlet jar包 在你的tomcat安装目录下的lib里面, 要导入servlet.api就可以了
解决了么?
第一:我看到你使用maven 但是你的jar包有没有在pom.xml中的依赖中搞定;
第二:我看到你的跳转语句好像有问题;
第三:可能是你的约束条件有问题
<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">
</web-app>
通过自动回复机器人学Mybatis---基础版
107410 学习 · 786 问题
相似问题