亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

老鐵們,幫我看看這兩個問題怎么解決啊

http://img1.sycdn.imooc.com//59fc22250001f34d14000976.jpg

http://img1.sycdn.imooc.com//59fc22270001583714000976.jpg



http://img1.sycdn.imooc.com//59fc2229000111b814000976.jpg



第一個異常:

?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


正在回答

3 回答

你沒有導入你的servlet jar包 在你的tomcat安裝目錄下的lib里面, 要導入servlet.api就可以了

0 回復 有任何疑惑可以回復我~

解決了么?


0 回復 有任何疑惑可以回復我~

第一:我看到你使用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>

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

老鐵們,幫我看看這兩個問題怎么解決啊

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號