我们部署jar文件的服务器没有互联网连接。
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,但仍然失败。
任何帮助都将不胜感激。
谢谢
发布于 2015-01-22 17:16:27
具体来说,对于spring模式,您不需要做任何聪明的事情-只需使用它们通常的http:位置来声明它们。在解析bean定义文件时,spring使用一个目录将对已知spring模式的请求重定向到spring jar文件中的缓存副本。
https://stackoverflow.com/questions/28084512
复制相似问题