关于编写web代码时提示语

当我们在编写一个程序时,如果写的有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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值