Unsatisfied dependency expressed through bean property ‘sqlSessionFactory‘报错解决
在测试代码的时候碰到Unsatisfied dependency expressed through bean property 'sqlSessionFactory'其实有个大哥写的很详细 具体可以参考(亲测解决)Unsatisfied dependency expressed through bean property 'sqlSessionFactory'_TianXinCoord的博客-C
·
在测试代码的时候碰到
Unsatisfied dependency expressed through bean property 'sqlSessionFactory'
其实有个大哥写的很详细 具体可以参考
如果说这位大哥的方法不管用 而且你的代码报错最后一段有
这种情况你大概率跟我一样,配置文件application.yml或者properties出现问题了
你只需要将配置文件改成下面的就行
mybatis-plus:
mapper-locations=classpath:mapper/*Mapper:
更多推荐
已为社区贡献2条内容
所有评论(0)