Could not autowire. No beans of 'ReportMapper' type found.
时间: 2023-10-28 22:51:33 浏览: 85
This error message indicates that the Spring application context cannot find any beans of type "ReportMapper". This could be due to a few reasons:
1. There might be a typo in the bean name or class name.
2. The ReportMapper class might not be annotated with the @Component or @Service annotations, which are required for Spring to recognize it as a bean.
3. The ReportMapper class might not be in the correct package or not scanned by the component scan.
To resolve this error, make sure that the ReportMapper class is properly annotated and in the correct package, and that it is being scanned by the component scan. If the issue persists, try renaming the bean or class to ensure that there are no typos.
阅读全文