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 ...
最新文章
- 一个小团队使用的知识管理方案与工具
- 网管员应掌握好的学习方法
- Windows Azure Web Site (9) Web Site公网IP地址
- use web IDE to commit change to git
- table 多行 宽度不一致_layui table 中固定列的行高和table行高不一致
- 五、Kafka 用户日志上报实时统计之应用概述
- 一场价值4500亿的抉择
- 现代版马拉火车!蔚来出动燃油板车运送充电车服务
- 圆方树(bzoj 2125: 最短路)
- LCA(最近公共子序列)
- 在线免费下载音乐网站源码,支持在线播放
- Ubuntu系统实现简单c语言编程
- 智慧路灯杆网关_路灯杆控制网关_路灯杆通信网关
- ORA-01830: date format picture ends before converting entire input string的几种原因
- cocos creator 横版射击游戏全民吃鸡大战 H5+安卓+IOS三端源码
- ubuntu 安装浏览器flash插件
- 融资租赁公司信息科技规划研究
- MAR位数反应存储单元的个数 MDR位数=存储字长
- 剑已配好,我们江湖见
- 【2020年11月】研读和改进淘宝自动下单程序
热门文章
- python 内置方法的时间复杂度
- linux虚拟文件系统vfs
- MySQL 同步(三)不同版本问题
- layui隐藏侧边栏_11个iPhone隐藏技能,好用但很少人知道,看完怀疑自己用的假手机...
- python闭包修改全局变量_python闭包探究一二
- mvc if 显示html,asp.net mvc - 在MVC3 Razor中,如何在动作中获取渲染视图的html?
- linux网络管理技术,linux网络管理 一
- mysql startupitem_MySQL数据库之Mac上安装MySQL过程分享
- MATLAB保存数据为dat格式,將matlab中數據保存為txt或dat格式
- 最流行的python爬虫框架_Python最火爬虫框架Scrapy入门与实践