windwos---preferences--搜索 cata ----选择XML Catalog---Add添加
location:E:\Java\SSH\spring\spring-framework-4.2.4.RELEASE\schema\beans\spring-beans-4.2.xsd
key:beans后面加文件的名称
在xml文件添加根元素beans---点击Design
选中beans 右键选择Edit Namespaces..
点击Add
勾选xsi--选择OK--再次选择Add
勾选Specify new namespace
勾选Browse
勾选Select xml catalog entry 找到之前刚才导入的Schema
把location 后面的文件名去掉复制到上面去 Prefix可以是空的
完成好书写al出现提示即成功