@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {
		final BindResult<SpringDocConfigProperties> result = Binder.get(environment)
				.bind(SPRINGDOC_PREFIX, SpringDocConfigProperties.class);
		if (result.isBound()) {
			SpringDocConfigProperties springDocGroupConfig = result.get();
			List<GroupedOpenApi> groupedOpenApis = springDocGroupConfig.getGroupConfigs().stream()
					.map(elt -> {
						GroupedOpenApi.Builder builder = GroupedOpenApi.builder();
						if (!CollectionUtils.isEmpty(elt.getPackagesToScan()))
							builder.packagesToScan(elt.getPackagesToScan().toArray(new String[0]));
						if (!CollectionUtils.isEmpty(elt.getPathsToMatch()))
							builder.pathsToMatch(elt.getPathsToMatch().toArray(new String[0]));
						if (!CollectionUtils.isEmpty(elt.getProducesToMatch()))
							builder.producesToMatch(elt.getProducesToMatch().toArray(new String[0]));
						if (!CollectionUtils.isEmpty(elt.getConsumesToMatch()))
							builder.consumesToMatch(elt.getConsumesToMatch().toArray(new String[0]));
						if (!CollectionUtils.isEmpty(elt.getHeadersToMatch()))
							builder.headersToMatch(elt.getHeadersToMatch().toArray(new String[0]));
						if (!CollectionUtils.isEmpty(elt.getPathsToExclude()))
							builder.pathsToExclude(elt.getPathsToExclude().toArray(new String[0]));
						if (!CollectionUtils.isEmpty(elt.getPackagesToExclude()))
							builder.packagesToExclude(elt.getPackagesToExclude().toArray(new String[0]));
						if (StringUtils.isNotEmpty(elt.getDisplayName()))
							builder.displayName(elt.getDisplayName());
						if (Optional.ofNullable(elt.getOpenApi()).isPresent()) {
							builder.addOpenApiCustomizer(new SpecPropertiesCustomizer(elt.getOpenApi()));
						}
						return builder.group(elt.getGroup()).build();
					})
					.toList();
			groupedOpenApis.forEach(elt -> beanFactory.registerSingleton(elt.getGroup(), elt));
		}
		initBeanFactoryPostProcessor(beanFactory);
	}
Init bean factory post processor.

@param beanFactory the bean factory
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/configurer/SpringdocBeanFactoryConfigurer.java