首页 > 移动平台 > 详细

运行springboot项目报错:Field userMapper in XX required a bean of type 'xx' that could not be found.

时间:2019-10-25 09:03:49      阅读:199      评论:0      收藏:0      [点我收藏+]

运行springboot项目报错:

***************************

APPLICATION FAILED TO START

***************************

Description:

Field userMapper in com.whohim.springboot.service.impl.UserServiceImpl required a bean of type ‘com.whohim.springboot.dao.UserMapper‘ that could not be found.

Action:

Consider defining a bean of type ‘com.whohim.springboot.dao.UserMapper‘ in your configuration.

Process finished with exit code 0

在项目启动类加上下面注解即可(扫描对应的mapper包)

技术分享图片

 

运行springboot项目报错:Field userMapper in XX required a bean of type 'xx' that could not be found.

原文:https://www.cnblogs.com/share-record/p/11735931.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!