首页 > 编程语言 > 详细

SpringXMl文件不提示的解决方法

时间:2020-07-25 20:27:44      阅读:87      评论:0      收藏:0      [点我收藏+]

applicationContext.xml没有提示的解决方法

1、配置spring-beans-4.1.xsd文件

(1)找到spring-beans-4.1.xsd的文件的位置,例如:

技术分享图片

 

 

 

(2)复制下面的url地址:

http://www.springframework.org/schema/beans/spring-beans-4.0.xsd

(3)在eclipse菜单栏中: window --> Preferences --> 在搜索框中搜索 [ xml ]

XML --> XML Catalog --> User Specified Entries --> Add…

技术分享图片

 

 

 (4)在弹出的窗口中:

技术分享图片

 

 

 

2、配置spring-context-4.0.xsd文件

(1)找到spring-context-4.0.xsd的文件的位置,例如:

技术分享图片

 

 

 

(2)复制下面的url地址:

http://www.springframework.org/schema/context/spring-context-4.0.xsd

(3)在eclipse菜单栏中: window --> Preferences --> 在搜索框中搜索 [ xml ]

XML --> XML Catalog --> User Specified Entries --> Add…

技术分享图片

 

 

 (4)在弹出的窗口中:

技术分享图片

 

 

 

(5)如果spring的主配置文件xml中不提示mvc标签操作也如上

只是第(4)步图中的key得换成         http://www.springframework.org/schema/mvc

key type选namespace name

 

SpringXMl文件不提示的解决方法

原文:https://www.cnblogs.com/zhaoyongqi/p/springmvcTip.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!