解决SpringBoot中出现org.springframework.beans.factory.UnsatisfiedDependencyException

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘com.hikvision.coal.test’: Unsatisfied dependency expressed through field ‘planInfoMapper’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.hikvision.coal.mapper.PlanInfoMapper’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

在这里插入图片描述

解决方法

在mapper中PlanInfoMapper类下加入@Mapper注解

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
org.springframework.bootSpring Boot框架的一个核心包。如果你在使用Spring Boot时遇到org.springframework.boot包不存在的问题,通常是由于以下几种可能性导致的。 首先,可能是你的项目的依赖配置有问题。在使用Spring Boot时,我们通常会使用构建工具如Maven或Gradle来管理项目的依赖。确保你的项目的依赖配置正确并包含了org.springframework.boot相关的依赖。 其次,可能是你的构建工具没有成功下载或引入org.springframework.boot相关的依赖。你可以尝试清理构建工具的缓存并重新构建项目,以确保依赖被正确下载和引入。 另外,这个问题也有可能是由于网络连接问题导致的。如果你的网络连接不稳定或者被防火墙拦截,可能会导致依赖无法正确下载。你可以尝试检查你的网络连接,并确保没有被防火墙拦截。 综上所述,如果你遇到org.springframework.boot包不存在的问题,你可以检查你的项目的依赖配置、构建工具和网络连接,以确定问题的具体原因并采取相应的解决措施。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [新手自学Spring Boot遇到org.springframework.boot包不存在,糊涂解决了!!!有大神可以解释一下吗?](https://blog.csdn.net/weixin_50063227/article/details/108020911)[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: 100%"] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值