一.详细报错:
这是一个普通的Maven项目,使用了Mybatis。很久没打开过,隔了很长一段时间再打开就报这个错。
![](https://img-blog.csdnimg.cn/img_convert/f7ea4531b3c6624a31005f43f0b440aa.png)
![](https://img-blog.csdnimg.cn/img_convert/c0f15294f93b28f4aa4486ca7f673f59.png)
二.报错解读
URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
意思是 http://maven.apache.org/POM/4.0.0 这个URL未注册
三.解决方法
1.打开File里的settings
![](https://img-blog.csdnimg.cn/img_convert/879ecffe1a69d836e0cab5b1aa0c7186.png)
2. 找到Languages&Frameworks 展开后有Schemas and DTDs进行添加URL
http://maven.apache.org/POM/4.0.0
![](https://img-blog.csdnimg.cn/img_convert/f803d3e7723247d467ffeae5b592e19d.png)
3.添加完成http://maven.apache.org/POM/4.0.0 ,务必apply+ OK
![](https://img-blog.csdnimg.cn/img_convert/281ea597f0d4723fef7305712964fe3a.png)
四. 解决完成
![](https://img-blog.csdnimg.cn/img_convert/8481fec8dbf6fa3db0fce3950bc118c3.png)