在测试代码的时候碰到
Unsatisfied dependency expressed through bean property 'sqlSessionFactory'
其实有个大哥写的很详细 具体可以参考
如果说这位大哥的方法不管用 而且你的代码报错最后一段有
这种情况你大概率跟我一样,配置文件application.yml或者properties出现问题了
你只需要将配置文件改成下面的就行
mybatis-plus:
mapper-locations=classpath:mapper/*Mapper: