Consider defining a bean of type ‘xxxmapper‘ in your configuration.【已解决】

Write a test class to reproduce the problem:

 If you see this error, don’t be impatient. The problem may be that your springBoot startup class has not written the annotation of the scanning package @MapperScan("xxx")

 Just add it, hope it solves your problem!

Guess you like

Origin blog.csdn.net/tomorrow9813/article/details/131564911