首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何更改xsd文件中的schemalocation,使其从类路径引用另一个xsd文件?

如何更改xsd文件中的schemalocation,使其从类路径引用另一个xsd文件?
EN

Stack Overflow用户
提问于 2015-01-22 16:51:03
回答 1查看 533关注 0票数 0

我们部署jar文件的服务器没有互联网连接。

代码语言:javascript
复制
2015-01-22 02:26:37 WARN  XmlBeanDefinitionReader:48 - Ignored XML validation warning
org.xml.sax.SAXParseException; systemId: file:///C:/TMC_SERVICE/spring-context-4.1.xsd; lineNumber: 12; columnNumber: 110; schema_reference.
4: Failed to read schema document '../spring-tool-4.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) th
e root element of the document is not <xsd:schema>.

我在类路径中保存了spring-beans、spring-context、spring-utils和spring-tools。我还更改了spring-context文件中的schemalocation,但仍然失败。

任何帮助都将不胜感激。

谢谢

EN

回答 1

Stack Overflow用户

发布于 2015-01-22 17:16:27

具体来说,对于spring模式,您不需要做任何聪明的事情-只需使用它们通常的http:位置来声明它们。在解析bean定义文件时,spring使用一个目录将对已知spring模式的请求重定向到spring jar文件中的缓存副本。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28084512

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档