今天在配applicationContext.xml的时候出现了这样一个错误:
x: White spaces are required between publicId and systemId
我用的是Spring3.0.5
错误在于下列标签的顺序必须按照下面的来
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd "
也就是说,beans的下一行必须是 beans/spring-beans-3.0.xsd,context的下一行必须是context/spring-context-3.0.xsd
其他的链接也是一样。
如果按照这样的顺序试过了还不行,那留言吧,一起解决。
本文详细介绍了在使用Spring3.0.5配置applicationContext.xml时遇到的XML标签顺序错误,并提供了解决方案。重点强调了beans、context、tx和aop标签之间的正确排列顺序,确保应用正常运行。
896

被折叠的 条评论
为什么被折叠?



