Field XXXX required a bean of type XXXX that could not be found.

 出现下列异常 是因为 mapper接口中没有添加注解    @Mapper   【出现这样得异常一般是注解得问题   请检查业务层和mapper层得注解是否完善

 
***************************
APPLICATION FAILED TO START
***************************

Description:

Field identifyapplyMapper in com.bfc.boperation.service.serviceImpl.IdentifyApplyServiceImpl required a bean of type 'com.bfc.boperation.mapper.IdentifyapplyMapper' that could not be found.

The injection point has the following annotations:
	- @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 'com.bfc.boperation.mapper.IdentifyapplyMapper' in your configuration.


Process finished with exit code 0

 在Mapper接口中加上@Mapper注解

@Mapper
public interface IdentifyapplyMapper {
    int deleteByPrimaryKey(Long applyId);
}

 

 

 

  • 7
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在代码引用中,是一个Redisson的配置类。它定义了一个名为RedissonClient的Bean,该Bean用于创建Redisson实例。在配置中,通过设置Redis的地址和密码来创建Redisson实例。这段代码应该是用于在Spring Boot项目中配置Redisson的使用。 在错误引用中,是一个错误提示,指出在AccessLimitController中的redisTemplate字段没有找到对应的RedisTemplate的Bean。这通常是由于没有正确配置RedisTemplate或者没有在配置类中定义RedisTemplate的Bean引起的。 而在引用中,是对使用@Autowired和@Qualifier注解进行Bean注入的限制进行了解释。虽然使用@Autowired和@Qualifier可以按照名称来注入Bean,但是它们对于Bean的类型仍然有限制。 所以,问题中的错误提示是指在项目中找不到类型为'org.redisson.api.RedissonClient'的Bean。这可能是由于没有正确配置RedissonClient的Bean或者没有在项目中定义RedissonClient的Bean引起的。请检查配置类是否正确,并确保RedissonClient的Bean已正确定义。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [redisson无法连接redis jar包冲突](https://blog.csdn.net/ypp91zr/article/details/102662614)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Field redisTemplate in ... required a bean of type ...RedisTemplate' that could not be found.](https://blog.csdn.net/weixin_40910372/article/details/103832586)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值