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

大雁f

关注

阅读 102

2023-01-14


前言

搭建项目报错为这个,阅读可知找不到这个通用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


精彩评论(0)

0 0 举报