Consider defining a bean of type ‘xxxmapper‘ in your configuration.【已解决】

写个测试类复现问题:

 如果你看到这个报错,不用急躁,问题可能出现在你的springBoot启动类上少写了扫描包的注解@MapperScan("xxx")

 加上去就行了,希望解决了你的问题!

猜你喜欢

转载自blog.csdn.net/tomorrow9813/article/details/131564911