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层的注解
版权声明:本文为qq_37158147原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。