为了账号安全,请及时绑定邮箱和手机立即绑定

Could not autowire

http://img1.sycdn.imooc.com//605b6e7e0001d34703510144.jpg

Could not autowire. No beans of 'UserMapper' type found,添加

@MapperScan("com.iommc.mybatisplus.mapper")
路径慕的错


正在回答

5 回答

你这个测试类的包名,是什么,可以跟你的启动类的包相同试试。

0 回复 有任何疑惑可以回复我~

我也遇到同样的问题?这个问题你是怎么解决的??

0 回复 有任何疑惑可以回复我~

路径没错啊

0 回复 有任何疑惑可以回复我~
#1

啊顾顾

idea太智能 运行没问题的
2021-07-15 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

Could not autowire

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信