Could not autowire. No beans of 'StatisticReportExportCommonMethod' type found.
时间: 2023-10-30 19:43:15 浏览: 39
This error message is typically encountered when Spring is unable to find a bean of type `StatisticReportExportCommonMethod`. This can occur for a few reasons:
1. The bean is not defined in any of the Spring configuration files.
2. The bean is defined in a configuration file, but it is not being scanned by Spring.
3. The bean is defined, but it is not being instantiated correctly.
To resolve this error, you should first ensure that the bean is defined in one of the Spring configuration files. If it is defined, make sure that the configuration file is being scanned by Spring.
If the bean is defined and the configuration file is being scanned, double-check that the bean is being instantiated correctly. This could include checking that any dependencies are being injected correctly.
If none of these solutions work, it may be necessary to provide more information about the specific error and configuration to diagnose the issue further.