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!