接口 AutoConfigurationImportFilter

    • 方法详细资料

      • match

        boolean[] match​(String[] autoConfigurationClasses,
                        AutoConfigurationMetadata autoConfigurationMetadata)
        Apply the filter to the given auto-configuration class candidates.
        参数:
        autoConfigurationClasses - the auto-configuration classes being considered. Implementations should not change the values in this array.
        autoConfigurationMetadata - access to the meta-data generated by the auto-configure annotation processor
        返回:
        a boolean array indicating which of the auto-configuration classes should be imported. The returned array must be the same size as the incoming autoConfigurationClasses parameter. Entries containing false will not be imported.