![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误
A骑士今洋
这个作者很懒,什么都没留下…
展开
-
解决mybatis问题:The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMa
今晚在配置mapper文件的时候出现了这个异常:The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMap*|sql*|insert*|update*|delete*|select*)+".上面解释是 mapper必须配置这个几个类型的东西:cache-ref原创 2017-03-25 20:56:20 · 10264 阅读 · 4 评论 -
错误Error building SqlSession. ### The error may exist in mybatis/mapping/NoteBookUserMapper.xml
log4j:WARN No appenders could be found for logger (org.apache.ibatis.logging.LogFactory).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://logging.apache.org/log4j/1.2/f原创 2017-03-25 21:38:32 · 8254 阅读 · 1 评论 -
错误:Mapped Statements collection does not contain value for后面是什么类什么方法之类的
如题,遇到了此类的问题以后,错误原因有几种: 1、mapper.xml中没有加入namespace 2、mapper.xml中的方法和接口mapper的方法不对应 3、mapper.xml没有加入到mybatis-config.xml中(即总的配置文件),例外:配置了mapper文件的包路径的除外 4、mapper.xml文件名和所写的mapper名称不相同。原创 2017-03-25 21:45:06 · 372 阅读 · 0 评论