码迷,mamicode.com
首页 > 编程语言 > 详细

spring的xml配置文件出现问题

时间:2014-09-30 16:41:49      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:spring   xml   

今天在断网的情况下,spring的applicationContext.xml文件开头部分出现红叉

<span style="font-size:18px;"><?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
        http://www.springframework.org/schema/beans/<span style="color:#ff0000;">spring-beans.xsd</span>"></span>

出现问题的根本原因是找不到.xsd文件

找到spring-beans-4.0.5.RELEASE的jar文件,解压进去到spring-beans-4.0.5.RELEASE\org\springframework\beans\factory\xml目录下

看果然没有这个.xsd文件

修改为

<span style="font-size:18px;"><?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
        http://www.springframework.org/schema/beans/<span style="color:#ff0000;">spring-beans4.0.xsd</span>"></span>

红叉就不见了,问题解决

spring的xml配置文件出现问题

标签:spring   xml   

原文地址:http://blog.csdn.net/u010931209/article/details/39695655

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!