cvc-complex-type.2.4.b: The content of element 'servlet' is not complete. One of '{"http://
java.sun.com/xml/ns/javaee":description, "http://java.sun.com/xml/ns/javaee":display-name,
"http://java.sun.com/xml/ns/javaee":icon, "http://java.sun.com/xml/ns/javaee":servlet-name}' is
expected.

在eclipse动态网页项目中,编写web.xml时,servlet标签报错.

先了解一下xmlns

在我们编写的web.xml中,第二行就有一个xmlns
出现上述问题是因为xmln中的url版本太老
在eclipse动态网页项目中,编写web.xml时,servlet标签报错.

将其用浏览器打开,会在第四行左右看到一个last version,将其替换到xmlns到即可.
在eclipse动态网页项目中,编写web.xml时,servlet标签报错.

相关文章:

  • 2022-01-03
  • 2021-04-29
  • 2021-08-13
  • 2022-12-23
  • 2021-08-25
猜你喜欢
  • 2021-04-19
  • 2021-11-07
  • 2021-07-11
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2021-04-12
相关资源
相似解决方案