idea mybatisplus接口 Could not autowire. No beans of ‘SysUserRoleMapper‘ type found.

在这里插入图片描述

解决:
将Autowired检测的级别,改为warning或其它更低等级
在这里插入图片描述
警告由原来的error变为warring
在这里插入图片描述

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
"Could not autowire. No beans of 'IMovieMapper' type found."这个错误通常出现在Spring Boot项目中,表示找不到符合条件的IMovieMapper接口的bean。解决这个问题有以下三种方法: 方法一:在IMovieMapper接口文件上添加@Repository注解,代表数据访问。这样可以告诉Spring容器将该接口声明为一个bean,从而解决找不到bean的问题。 方法二:将@Mapper注解改为@Repository。这样也可以将IMovieMapper接口声明为一个bean,解决找不到bean的问题。 方法三:修改IDEA的配置。可以参考https://blog.csdn.net/Hellowenpan/article/details/85249679中的方法来解决这个问题。 总结起来,解决"Could not autowire. No beans of 'IMovieMapper' type found."的问题有三种方法,分别是在接口文件上添加@Repository注解、将@Mapper注解改为@Repository、修改IDEA的配置。你可以根据具体情况选择其中一种方法来解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [Could not autowire. No beans of ‘xxxMappertype found.](https://blog.csdn.net/weixin_44575373/article/details/126218971)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *3* [idea报“Could not autowire. No beans of ‘UserMappertype found. ”错解决办法](https://blog.csdn.net/weixin_41963554/article/details/109451015)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

不知所云,

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值