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名称不相同。
最后对着各个po的mapper文件检查了一遍,发现还是最开始的地方写错了也就是<association>那里写错了
参考:
https://blog.csdn.net/weixin_36722711/article/details/91350483