Springboot配置mybatisplus报Unsatisfied dependency expressed through bean property ‘sqlSessionFactory‘
编程之家650
更新时间:2026-04-03 21:40:58
问题描述:使用Maven+SpringBoot+MyBatisPlus测试报Unsatisfied dependency expressed through bean property ‘sqlSessionFactory’
在网上查询了各种方法总结整合mybatisPlus这类问题及解决方法如下:
1.配置yml文件出错:注意空格符号等,以及xml扫描文件路径 2.启动类这要加上dao包路径用@mapperscan
3.对应springboot父工程和springcloud的版本要匹配我用使用的版本如下:
4.检查mapper包下xml文件中路径是否正确,使用逆向工程生成代码后我移动过位置,所以我是这个地方报了错。
5
本文发布于:2025-08-13,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:UnsatisfieddependencySpringBootmybatisPlusProperty
发布评论