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 project error

Added to the startup class

@MapperScan (basePackages = "com.dao")

Notes scan dao layer

 

 

Published 15 original articles · won praise 3 · Views 771

Guess you like

Origin blog.csdn.net/qq_37158147/article/details/104100192