White spaces are required between publicId and sys

spring IOC 启动的时候,会报这个错误。
spring

Caused by: org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/tx/spring-tx-3.0.xsd; lineNumber: 1; columnNumber: 50; White spaces are required between publicId and systemId.


Reasons: i think the most possible reasons is that you lost the jar. 最有可能得状况是没有在classpath里面添加该jar。ui


Solution: check if you have the jar and add to your classpath. 检查在工程里面是否有该jar.spa

Affiliated:spring beans example. spring xmls example. code

<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:tx="http://www.springframework.org/schema/tx" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/context 
	http://www.springframework.org/schema/context/spring-context.xsd
	http://www.springframework.org/schema/beans 
	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
	http://www.springframework.org/schema/aop 
	http://www.springframework.org/schema/aop/spring-aop.xsd
	http://www.springframework.org/schema/tx 
	http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">

另外:对于 xmlns 更像是声明这下关键字的(context,aop)的使用空间。xsi:schemalocation更像是相应的文件的路径。xml

相关文章
相关标签/搜索