1.从Spring Jar包中找到约束文件
\spring-framework-3.2.0.RELEASE-dist\spring-framework-3.2.0.RELEASE\schema
2.取出需要的 .xsd 文件 (以下以Beans 为例 其余约束文件同理)
3.将文件复制到自己长期不会删掉的一个文件中(记好路径)
4.打开 MyEclipse – Window – Preferences
5.搜索栏中输入 xml 选中XML Catalog选项
6.点击Add
7.点击FileSystem
8找到自己长久保存约束文件目录
9选中文件后的视图

10修改Key type选项 为 SchemaLocation
11Location路径下最后的文件名复制到Key后 加上”/”
12检查参数设置 然后保存



13重启Myeclipse 然后 检测配置是否成功 注意要有上面的xml文件约束
