首页 > 其他分享 >Consider defining a bean of type ‘com.dao.UserInfoDao‘ in your configuration.

Consider defining a bean of type ‘com.dao.UserInfoDao‘ in your configuration.

时间:2023-01-14 10:10:01浏览次数:31  
标签:Consider type dao UserInfoDao bean com your


前言

搭建项目报错为这个,阅读可知找不到这个通用mapper接口

***************************
APPLICATION FAILED TO START
***************************

Description:

Field userInfoDao in com.picc.service.UserInfoService required a bean of type 'com.dao.UserInfoDao' that could not be found.


Action:

Consider defining a bean of type 'com.dao.UserInfoDao' in your configuration.


Process finished with exit code 1

解决

注解导包错了,两个mapper的包应该是不一致的

Consider defining a bean of type ‘com.dao.UserInfoDao‘ in your configuration._java


标签:Consider,type,dao,UserInfoDao,bean,com,your
From: https://blog.51cto.com/u_15939406/6007202

相关文章