问题:

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 ‘***.**‘相关推荐

  1. 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 ...

  2. 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 ...

  3. 使用Feign服务远程调用项目启动时报错:Field xxx in xxx required a bean of type xxx that could not be found.

    报错: *************************** APPLICATION FAILED TO START ***************************Description:F ...

  4. 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 ...

  5. 多模块项目依赖注入失败Field xxRepository in xxImpl required a bean of type xxRepository that could not be found

    错误场景:多模块项目,依赖注入失败 今天新搭了个多模块服务,controller和service,repository是在不同的模块中的,在controller的模块中导入service,reposi ...

  6. 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 ...

  7. SpringBoot 项目中在Controller 直接调用Mapper,提示:Field mapper in ‘*Controller ‘ required a bean of type ‘*Map

    今天使用IDEA 搭建SpringBoot 项目,我心血来潮想省略Service 层的编写就直接在Controller 层调用Mapper 层接口,提示如下错误信息: **************** ...

  8. 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 ...

  9. 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 ...

最新文章

  1. 一个小团队使用的知识管理方案与工具
  2. 网管员应掌握好的学习方法
  3. Windows Azure Web Site (9) Web Site公网IP地址
  4. use web IDE to commit change to git
  5. table 多行 宽度不一致_layui table 中固定列的行高和table行高不一致
  6. 五、Kafka 用户日志上报实时统计之应用概述
  7. 一场价值4500亿的抉择
  8. 现代版马拉火车!蔚来出动燃油板车运送充电车服务
  9. 圆方树(bzoj 2125: 最短路)
  10. LCA(最近公共子序列)
  11. 在线免费下载音乐网站源码,支持在线播放
  12. Ubuntu系统实现简单c语言编程
  13. 智慧路灯杆网关_路灯杆控制网关_路灯杆通信网关
  14. ORA-01830: date format picture ends before converting entire input string的几种原因
  15. cocos creator 横版射击游戏全民吃鸡大战 H5+安卓+IOS三端源码
  16. ubuntu 安装浏览器flash插件
  17. 融资租赁公司信息科技规划研究
  18. MAR位数反应存储单元的个数 MDR位数=存储字长
  19. 剑已配好,我们江湖见
  20. 【2020年11月】研读和改进淘宝自动下单程序

热门文章

  1. python 内置方法的时间复杂度
  2. linux虚拟文件系统vfs
  3. MySQL 同步(三)不同版本问题
  4. layui隐藏侧边栏_11个iPhone隐藏技能,好用但很少人知道,看完怀疑自己用的假手机...
  5. python闭包修改全局变量_python闭包探究一二
  6. mvc if 显示html,asp.net mvc - 在MVC3 Razor中,如何在动作中获取渲染视图的html?
  7. linux网络管理技术,linux网络管理 一
  8. mysql startupitem_MySQL数据库之Mac上安装MySQL过程分享
  9. MATLAB保存数据为dat格式,將matlab中數據保存為txt或dat格式
  10. 最流行的python爬虫框架_Python最火爬虫框架Scrapy入门与实践