ssm整合中单元测试中dao一直报错,小白在线求解

报错信息

目录结构

扫描部分的配置文件

dao的xml
- 有没有配置扫描目录
- 扫描目录配置的与实际mapper,xml,entity位置是否一致?
- 检查下面三个配置两个注解,一个properties配置:@MapperScan("com....") @ComponentScan(basePackages = "com...") mybatis.mapper-locations=classpath*:mapper/*Mapper*.xml
spring整合mybatis的原理如果有兴趣可以看下这篇博客:https://blog.csdn.net/u010597819/article/details/103546894