
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层的注解
👁️ 阅读量:0
© 版权声明:本文《Consider defining a bean of type 'com.dao.StudentDao' in your configuration.》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686552276a289871.html。