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

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

作者:互联网

Description:

Field studentDao in com.services.StudentService required a bean of type 'com.dao.StudentDao' that could not be found.


Action:

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

SpringBoot项目报错

在启动类上加

@MapperScan (basePackages = "com.dao")

扫描dao层的注解

 

 

唯♧ 发布了15 篇原创文章 · 获赞 3 · 访问量 773 私信 关注

标签:Consider,com,dao,bean,StudentDao,type,your
来源: https://blog.csdn.net/qq_37158147/article/details/104100192