admin管理员组

文章数量:1794759

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层的注解

 

 

本文标签: typeampdefiningbeanStudentDao