1、【window】->【preference】…->【xml】-> 【xml catalog】
2、选中 user specified entried
3、选择左边【Add…】按钮
Location:请选择本地文件系统上的D:\java8\mylib\spring-framework-4.2.4.RELEASE\schema\beans\spring-beans-4.2.xsd
根据自己包的路径配置
key type:Schema Location
key:http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
4、点击确定
5、关闭源配置文件,重新打开即可