spring踩坑——idea里的Error while fetchinghttp://www.Springframework.org/schema/tx/Spring-tx-2.5.xsd标红

问题:
http://www.Springframework.org/schema/tx灰色
http://www.Springframework.org/schema/tx/Spring-tx-2.5.xsd标红

问题

灰色

Checks for unused namespace declarations and location hints in XML
检查XML中未使用的命名空间声明和位置提示

红色
1.png

idea的fetching resource读取失败

2.png

我是按照书上的代码敲的,结果就是报错
book

解决方法:
1.直接访问网址,然后点击
http://www.Springframework.org/schema/tx
3

然后复制网址
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd

4

替换掉标红的网址
5

发现不标红了
把标红的网址复制粘贴发现无法访问
结论:
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd

http://www.springframework.org/schema/tx/Spring-tx-2.5.xsd
就一个S和s大小写字母的区别
这个对大小写敏感(区分大小写),
参考:
https://blog.csdn.net/bluishglc/article/details/7596118
(Spring如何加载XSD文件(org.xml.sax.SAXParseException: Failed to read schema document错误的解决方法))
类似问题
相似

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容