MyBatis映射器出错,已解决(Multiple annotations found at this line: - The content of element type "mapper" m)

创建UserMapper.xml文件时提示错误:Multiple annotations found at this line:
- The content of element type “mapper” must match “EMPTY”.
- Attribute “namespace” must be declared for element type
“mapper”.
在这里插入图片描述
这是因为配置文件约束错误,将文档类型从configuration改为mapper即可
在这里插入图片描述

发布了53 篇原创文章 · 获赞 1 · 访问量 2766

猜你喜欢

转载自blog.csdn.net/weixin_43873198/article/details/105612309