关于编写web代码时提示语

来源:互联网 发布:淘宝活动招商入口 编辑:程序博客网 时间:2024/04/25 15:05

当我们在编写一个程序时,如果写的有xx.xml类型的文件时,可能我们会想要一些提示,但在某些么有网络的时候可能就会遇到一些麻烦,无论怎样都找不到提示语,现在我就教大家一种方法,专门针对没有网络的时候用的。

点击 window->Preferences->MyEclipse->Fil and Editors->XML-> XML Catalog

选择user Specified Entries 点击Add

Location:填写你本地xx.xsd位置,例如我的就是在F盘

Key Type:一定要填写Schema Location

Key:切记一定在要他给的地址后面加上你添加的文件名,例如我添加的是spring-beans-3.0.xsd

点击OK,这样在你配置XML的时候就会有提示出现

例如配置:applicationContext.xml

<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"       xsi:schemaLocation="http://www.springframework.org/schema/beans           <a target=_blank href="http://www.springframework.org/schema/beans/spring-beans.xsd">http://www.springframework.org/schema/beans/spring-beans.xsd</a>"></beans>


 

0 0
原创粉丝点击