Spring 个坑爹问题:在+publicId+和+systemId+之间需要有空格

来源:互联网 发布:suse linux snmp 编辑:程序博客网 时间:2024/05/16 10:57

Using Spring 2.5.6, I saw the exception: org.xml.sax.SAXParseException: White spaces are required between publicId and systemId when my <beans> tag was defined as:


简单说。就是前一个是publicID,后一个是SystemId,是一一对应的

http://www.springframework.org/schema/beans publicIDhttp://www.springframework.org/schema/beans/spring-beans-2.5.xsd SystemId

Code:
<beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"xmlns:webflow="http://www.springframework.org/schema/webflow-config"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsdhttp://www.springframework.org/schema/webflow-confighttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-2.5.xsdhttp://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd">
Switching it to:
Code:
<beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"xmlns:webflow="http://www.springframework.org/schema/webflow-config"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-2.5.xsdhttp://www.springframework.org/schema/webflow-confighttp://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd">
其他的我懒得管了。只是记录一下
0 0
原创粉丝点击