Spring配置xsd配置文件的提示

配置文件提醒是为了,可以在没有网络得时候能够有程序编写提醒。

1.打开applicationContext.xml页面

这里写图片描述
拷贝方框中得内容:
这里写图片描述

2.选择:window–>Preferences 然后搜索xml catalog,选中User Specified Entries 然后点击add

这里写图片描述

3.选择文件系统,打开自己在spring官网下载得spring-framework-4.3.9.RELEASE-schema文件下,找到beans文件夹,选择最新得xsd文件即可,我这里选择spring-beans-4.3.xsd。

这里写图片描述
然后再Key type中选择Schema location,粘贴之前再applicationContext.xml文件中复制得内容。ok,重启eclipse即可。
这里写图片描述

猜你喜欢

转载自blog.csdn.net/meiqi0538/article/details/81218522