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

【Spring】手动添加schema文件

2018年07月13日 ⁄ 综合 ⁄ 共 408字 ⁄ 字号 评论关闭

由于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

【上篇】
【下篇】

抱歉!评论已关闭.