<?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/spring-beans.xsd">
</beans>
这个核心配置文件存放的位置为src目录下的
如果这个约束找不到可以参考参考规范文档中的的xsd-config.html:
'spring-framework-3.2.0.RELEASE/docs/spring-framework-reference/html/xsd-config.html
搜一下 beans schema,拷贝到工程中
本文深入解析Spring框架的核心配置文件结构,介绍了如何正确设置XML命名空间及引用xsd规范,确保Spring Bean定义的正确加载。
497

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



