默认情况下,在编辑web.xml时是没有自动提示功能的,只能在编辑完成保存时验证语法是否正确。

解决方法:

1、下载(保存)http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd 文件。

2、在eclipse中 Windows ==> Preferences ==> XML ==> XML Catalog,然后右边窗口点击 add 按钮,打开 Add XML Catalog Entry 窗口。URI选择框选择到 web-app_2.4.xsd 文件 ,确定后,Key Type 会自动选中 Namespace Name ,Key会自动填入: http://Java.sun.com/xml/ns/j2ee ,OK 确定即可。

elclipse web.xml自动提示补全问题

相关文章:

  • 2021-08-03
  • 2021-04-03
  • 2021-11-20
  • 2021-11-04
  • 2021-11-27
  • 2021-05-27
  • 2021-07-03
猜你喜欢
  • 2021-06-23
  • 2021-10-02
  • 2021-12-06
  • 2021-12-03
  • 2021-05-11
  • 2021-11-29
相关资源
相似解决方案