配置spring约束
一:导入本地约束
在eclipse中点击:
Window------>Preference------->XML CataLog-------->add
点击File System 在本地选择导入schema文件,
并在key type下选择schema location。
并复制location中的最后字段,到Key中的最后面。
二:在sping配置文件下导入
1.在spring配置文件下输入<beans></beans>
2.在design视图下右键beans点击edit namespace,
3点击add,选择special name,并点击browse
4选择刚才导入的约束文件。