请访问:https://docs.spring.io/spring-framework/reference/6.1/core/beans/classpath-scanning.html Spring Framework Core Technologies The IoC Container Classpath Scanning and Managed Components Annotation-based Container Configuration Using JSR 330 Standard Annotations