显示mapper找不到:Field xxxMapper in xxx required a bean of type ‘xxxMapper‘ that could not be found
Field flowerMapper in cn.clearnight.flower.service.impl.FlowerServiceImpl required a bean of type 'cn.clearnight.flower.mapper.FlowerMapper' that could not be found.
这个问题可能是由于导包出现问题,如 2.7.1 出现问题,换成 2.7.2 或者其它版本可以解决问题
改完后,运行成功!!
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"><modelVersion>4.0.0</modelVersion><packaging>war</packaging><parent><artifactId>spring-boot-starter-parent</artifactId><groupId>org.springframework.boot</groupId><version>2.7.2</version></parent><name>springboot-ch03</name><groupId>cn.clearnight</groupId><artifactId>springboot-ch03</artifactId><version>v1.0.0.20220818</version><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId></dependency><dependency><groupId>org.mybatis.spring.boot</groupId><artifactId>mybatis-spring-boot-starter</artifactId><version>2.1.3</version></dependency><dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId></dependency></dependencies><build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins></build></project>
显示mapper找不到:Field xxxMapper in xxx required a bean of type ‘xxxMapper‘ that could not be found相关推荐
- mybatis Field xxxMapper in xxxx required a bean of type 'XXXMapper' that could not be found.
错误如下: 2017-05-11 16:15:32.410 [main] INFO o.a.catalina.core.StandardService - Stopping service Tomca ...
- Field xxxMapper in xxxServiceImpl required a bean of type XxxMapper解决方法
写一个项目,启动之后无报错就结束了,后来发现是日志配置问题.改了之后出现了"Field stuService in a.imooc.controller.StuController requ ...
- springboot 配置RedisTemplate 报:Field redisTemplate in XXX required a bean of type 'org.springframework
错误信息如下: Error starting ApplicationContext. To display the conditions report re-run your application ...
- 解决:Field xxClient in XXX required a bean of type 'XXX' that could not be found
使用@Autowired导入client时报如下错误: 找不到这个client,于是到启动类里观察 @EnableFeignClients("")配置路径,发现果然不对: 修改后问 ...
- 【踩坑专栏】Field xxFeignClient in xxx required a bean of type ‘xxx.XXFeignClient‘ that could not be found
首先我的feignClient上已标注解@FeignClient,出现这个问题的原因是因为启动类需要注解@EnableFeignClients(basePackages = "xx.xx.x ...
- Redis报错Field redisTemplate in xxx required a bean of type ‘org.x.RedisTemplate‘that can not be foud
一.问题描述 在注入RedisTemplate报错 二.解决办法 2.1使用@Resource注入 @Resourceprivate RedisTemplate<String, Object&g ...
- Field xxxMapper in xxxxxxx required a bean of type ‘xxxxMapper‘that could not be found.
问题: Description: Field xxxMapper in xxxxxxx required a bean of type 'xxxxMapper'that could not be fo ...
- Field XXXService in com.XXX.controller.XXX required a bean of type ‘com.XXX.mapper.xxx‘that could no
解决办法: Field surveyTypeService in com.XXX.controller.XXX required a bean of type 'com.XXX.mapper.xxx' ...
- springboot踩坑日记——Field xxx.xxx.xxx required a bean of type 'xxx.xxx.xxx' that could not be found
使用feign时报创建的feign接口找不到 Field xxx.xxx.xxx required a bean of type 'xxx.xxx.xxx' that could not be fou ...
最新文章
- 如何更改Joomla中的默认语言
- Android官方开发文档Training系列课程中文版:高效显示位图之在UI中展示位图
- 【图像处理】基于matlab直方图医学图像处理【含Matlab源码 458期】
- Win7下64位扫雷逆向以及辅助制作
- 新手如何学电影解说剪辑全教程
- caj打开文件错误验证服务器,CAJ 打开pdf文件错误(无法读取交叉引用表)的解决方法...
- QQ桌球瞄准器开发(1)桌球瞄准器介绍与使用方法
- 析构函数什么时候析构
- 美的集团计算机综合面试群面,美的集团面试
- python 网络 select
- 双足机器人课设报告_双足竞步机器人-智能步行者设计-技术报告
- [HEVC] HEVC学习(五) —— 帧内预测系列之三
- python图书搜索与书籍封面下载
- python 百度地图api
- 终极算法【7】——类推学派
- 企业微信如何创建微盘共享空间?
- java达达租车接口_Java实现一个达达租车系统的步骤详解
- 卓越的领导都会讲故事
- 微软为什么能在中国所向披靡 雁鸣
- PADS——PCB的制作
热门文章
- 计算机文件 的知识,文件夹知识详细介绍
- 如何查看电脑的配置-卖电脑必备(尤其二手)
- 使用计算机如何清零,怎样清除电脑所有数据_如何清空电脑所有数据
- 解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):xxx问题
- 360网页服务器的根目录,360浏览器收藏夹路径在哪里
- 解决.net framework 3.5 安装失败问题(亲测可行)
- 王者荣耀AI“绝悟”又进化了!会全英雄又懂田忌赛马
- YOLOv4论文翻译
- ligerUi 格式化日期
- LINUX系统子系统DEMON,【linux】led子系统