首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 其他相关 >

手动增添schema文件

2012-11-07 
手动添加schema文件手动添加schema文件,方法如下: windwos-preferences-myeclipse-files and editors-

手动添加schema文件
手动添加schema文件,方法如下:
windwos->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.springframework.org/schema/beans/spring-beans-2.5.xsd


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/millercheng/archive/2010/01/08/5156348.aspx


谢谢提醒,本以为自带例子给文件都齐全了,但wsdl导入的ws-addr.xsd需要手动从cxf-common-schemas-2.1.3.jar添加到工程目录中,这样就解决这个报错问题了。
(可以从cxf.jar中尝试把jaxrs.xsd考到工程目录中尝试下)

热点排行