首页 新闻 会员 周边

IntelliJ IDEA 中<servlet-name>LoginServlet</servlet-name> 名字报错

0
[待解决问题]

<servlet-name>LoginServlet</servlet-name> 名字报错,下面会有一条红线不知道什么原因。

求解决

Zero豪的主页 Zero豪 | 菜鸟二级 | 园豆:208
提问于:2017-08-06 13:58
< >
分享
所有回答(2)
-2

按照提示uninjeck就好了

Zero豪 | 园豆:208 (菜鸟二级) | 2017-08-06 14:28
0

试下下面:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>

<welcome-file>index.jsp</welcome-file>

<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>

<servlet>

...

ycyzharry | 园豆:25651 (高人七级) | 2017-08-07 10:41
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册