欢迎访问悦橙教程(wld5.com),关注java教程。悦橙教程  java问答|  每日更新
页面导航 : > > 文章正文

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

来源: javaer 分享于  点击 20470 次 点评:15

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


运行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包)

 

相关文章

    暂无相关文章
相关栏目:

用户点评