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

相關文章
相關標籤/搜索