Error:URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
Error:Element type "mapper" must be declared.
Error: Element type "resultMap" must be declared.
Error:Element type "id" must be declared.
Error: Element type "result" must be declared.
...
多个mapper.xml文件出错。
原本是好的,在我一波更改调整后出错了。
问题分析:
git提交时进行代码分析,review就会看到错误。
或者直接使用IDEA进行代码检查,也会查出错误。
根据错误提示可知,URI未注册,type未声明是否和URI未注册有关?
解决方案:
找到报错位置,alt+enter:
1.Fetch external resource
2.Ignore external resource
3.Manually setup external resource
最后
以上就是安详钢笔最近收集整理的关于mybatis错误: Element type must be declared的全部内容,更多相关mybatis错误:内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复