现在的位置: 首页 > 综合 > 正文

spring手动添加schema文件

2018年02月13日 ⁄ 综合 ⁄ 共 464字 ⁄ 字号 评论关闭

由于spring的schema文件位于网络上,如果机器不能连接到网络,那么在编写配置信息时候就出现提示信息,既然绝发那个发有两种
1:让机器上网,eclipse会自动从网络上下载schema文件并缓存在硬盘上。
2:手动添加schema文件  
windows->preferences->myeclipse->files and editors->xml->xmlcatalog
点"add",在出现的窗口中的Key Type中选择URI,在location中选"File system".
然后再spring解压目录的dist/resources目录总选择spring-beans-2.5.xsd.回到设置窗口的时候
不要着急关闭窗口、应该窗口中的Key Type改为Schema location,Key改为http://www.springframeword.org/schema/beans/spring-beans-2.5.xsd

转自:http://blog.csdn.net/xinyang_z/article/details/5508388

抱歉!评论已关闭.