首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网络技术 > 网络基础 >

referenced file contains errors spring-beans-2.零.xsd

2013-11-22 
referenced file contains errors spring-beans-2.0.xsdspring配置文件错误referenced file contains erro

referenced file contains errors spring-beans-2.0.xsd
spring配置文件错误referenced file contains errors

[color=Red]错误提示为:referenced file contains errors([url]http://www.springframework.org/schema/beans/spring-beans-2.0.xsd[/url])
运行没有问题,但是有红叉叉,网下找了以下文章解决了问题:[/color]

今天联系Spring+Hibernate基础,没办法,SSH配置一直一直在出问题,只能一点一点的调了~
首先在新建工程的时候就出现了问题,用MyEclipse加入Spring支持的时候就出现了错误提示,T_T~~~~我明明嘛都米开始干呢。。。。。

applicationContext.xml头出现了问题,MyEclipse提示如下错误:
Referenced file contains errors([url]http://www.springframework.org/schema/beans/spring-beans-2.0.xsd[/url]).For more information,right click on the message and select "Show Details"

这个问题经过上网搜索查询反复的改正,终于解决。
原因如下:
原头信息:
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans [url]http://www.springframework.org/schema/beans/spring-beans-2.0.xsd[/url]">

配置bean
</beans>
问题原因:我也不是特别清楚,估计是链接外网时出现问题,链接外网文件无法得到。

修改方法:
将头文件改为:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>

配置bean

</beans>
问题解决。

?

?

?

<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xmlns:aop="http://www.springframework.org/schema/aop"    xmlns:tx="http://www.springframework.org/schema/tx"    xsi:schemaLocation="       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">

?

热点排行