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

来源:互联网 发布:医院网络咨询话术 编辑:程序博客网 时间:2024/05/21 23:00

默认情况下,在编辑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 窗口。location选择框值从File System选择到 web-app_2.4.xsd 文件 ,确定后,Key Type 会自动选中 Namespace Name ,Key会自动填入: http://Java.sun.com/xml/ns/j2ee ,OK 确定即可。

原创粉丝点击