解决办法:
在properties文件中, 添加配置如下:mybatis.mapperLocations=classpath:mapper/*.xml
问题2:XML 文档结构必须从头至尾包含在同一个实体内。
解决办法
Mapper.xml中,缺少。
问题3:Could not autowire. No beans of 'ArticleMapper' type found.
解决方式:这个错误就是在springboot2.0版本以上新增了注解方式:只要在mapper报对应的库文件上加上注解@repository和@component方能解决以上问题