springboot Field userInfoInter in com.**.** required a bean of type ‘***.**‘
问题:
Field userInfoInter in com.yyjc.springboot.service.UserInfoService required a bean of type ‘com.yyjc.springboot.Mapper.UserInfoInter’ that could not be found.
解决:
我的项目结构
在主程序中加入基于包扫描的注解@MapperScan({""})或者@ComponentScan({""})
@SpringBootApplication
@MapperScan("com.yyjc.springboot.mapper")
public class Springboot009Application {public static void main(String[] args) {SpringApplication.run(Springboot009Application.class, args);}
}
```
springboot Field userInfoInter in com.**.** required a bean of type ‘***.**‘相关推荐
- SpringBoot报错Field userService in XXTestController required a bean of type 'XX' that could not be...
运行SpringBoot项目报错Field userService in XXXTestController required a bean of type 'XXX' that could not ...
- 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 ...
- 使用Feign服务远程调用项目启动时报错:Field xxx in xxx required a bean of type xxx that could not be found.
报错: *************************** APPLICATION FAILED TO START ***************************Description:F ...
- 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 xxRepository in xxImpl required a bean of type xxRepository that could not be found
错误场景:多模块项目,依赖注入失败 今天新搭了个多模块服务,controller和service,repository是在不同的模块中的,在controller的模块中导入service,reposi ...
- 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 ...
- SpringBoot 项目中在Controller 直接调用Mapper,提示:Field mapper in ‘*Controller ‘ required a bean of type ‘*Map
今天使用IDEA 搭建SpringBoot 项目,我心血来潮想省略Service 层的编写就直接在Controller 层调用Mapper 层接口,提示如下错误信息: **************** ...
- 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 ...
- springboot项目启动报错Field Mapper in ServiceImpl required a bean of type ‘Mapper‘ that could not be found
1.报错: Error starting ApplicationContext. To display the conditions report re-run your application wi ...
最新文章
- 在不同域中各个系统拥有自已独立的用户系统时的单点登录问题
- 国内常见的电子地图坐标介绍
- CobarClient源码分析
- 代码模板在哪里_C++的可变参数模板
- ant的下载与安装——mybatis学习笔记之预备篇(一)
- 【Kafka】Kafka broker id 解释以及 自动生成id
- 2012年12月第三个周末
- 计算机密码突然不正确,win10开机密码明明正确,win10密码突然不对了
- Office:手动卸载 Office 系统
- windows系统——更改系统关机音效
- html5 浮标,【钓鱼技巧】主说调与钓 附5个实战技巧
- Android 串口蓝牙通信开发Java版本
- hhkb mac设置_HHKB 纯小白入坑指南
- Android中的PID,UID,TID
- Linux之USB无线网卡开发(二)
- 解决苹果电脑(Mac)无法写入移动硬盘的方法
- 基于PCA 人脸识别/人脸识别算法/人脸检测程序源码MATLAB ELM+PCA人脸识别 PCA人脸识别matlab代码 基于PCA算法的人脸识别
- 表白套路计算机公式,高级表白密码我喜欢你公式 套路喜欢的人
- Android-Super分区
- php 命名空间 函数调用,PHP 命名空间 namespace 函数调用 类引用 详解
热门文章
- 7.3 编址与存储相关计算
- 软件开发生命周期模型 瀑布模型、增量模型、原型模型、螺旋模型、喷泉模型总结...
- 《JavaScript高级程序设计》学习笔记(第二章)
- iphone6s无4g显示无服务器,iPhone 6S无信号,镇定修复显现4G
- html批量翻译 github,英文单词短语批量翻译工具WordListTranslator
- java同名不同包文件_java – 如何从不同的JAR读取同名的几个资源文件?
- utf8 bom 去掉 java_utf-8-BOM删除bom
- 服务器升级中不能修改,windows10下更新服务器为何改不了了
- matlab读取pdb文件,使用BioPython读取.pdb文件的整个目录
- 菜鸟要飞java_Java Android视频教程 下载