问题:
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错误的解决方法))
类似问题

相似