@Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
		StringBuilder uiRootPath = new StringBuilder();
		String swaggerPath = swaggerUiConfigProperties.getPath();
		if (swaggerPath.contains(DEFAULT_PATH_SEPARATOR))
			uiRootPath.append(swaggerPath, 0, swaggerPath.lastIndexOf(DEFAULT_PATH_SEPARATOR));
		if (actuatorProvider.isPresent() && actuatorProvider.get().isUseManagementPort())
			uiRootPath.append(actuatorProvider.get().getBasePath());

		String webjarsPrefix = springDocConfigProperties.getWebjars().getPrefix();
		String resourcePath, swaggerUiPrefix, swaggerUiWebjarsPrefix;

		if (DEFAULT_WEB_JARS_PREFIX_URL.equals(webjarsPrefix)) {
			swaggerUiPrefix = SWAGGER_UI_PREFIX;
			resourcePath = webjarsPrefix + SWAGGER_UI_PREFIX + DEFAULT_PATH_SEPARATOR + swaggerUiConfigProperties.getVersion() + DEFAULT_PATH_SEPARATOR;
			swaggerUiWebjarsPrefix = webjarsPrefix + swaggerUiPrefix;
		}
		else {
			swaggerUiPrefix = webjarsPrefix;
			resourcePath = DEFAULT_WEB_JARS_PREFIX_URL + DEFAULT_PATH_SEPARATOR;
			swaggerUiWebjarsPrefix = swaggerUiPrefix;
		}

		registry.addResourceHandler(uiRootPath + swaggerUiWebjarsPrefix + ALL_PATTERN)
				.addResourceLocations(CLASSPATH_RESOURCE_LOCATION + resourcePath)
				.resourceChain(false)
				.addResolver(swaggerResourceResolver)
				.addTransformer(swaggerIndexTransformer);

		registry.addResourceHandler(uiRootPath + swaggerUiPrefix + ALL_PATTERN)
				.addResourceLocations(CLASSPATH_RESOURCE_LOCATION + resourcePath)
				.resourceChain(false)
				.addResolver(swaggerResourceResolver)
				.addTransformer(swaggerIndexTransformer);
	}
Instantiates a new Swagger web flux configurer.

@param swaggerUiConfigProperties the swagger ui calculated config
@param springDocConfigProperties the spring doc config properties
@param swaggerIndexTransformer   the swagger index transformer
@param actuatorProvider          the actuator provider
@param swaggerResourceResolver   the swagger resource resolver
springdoc-openapi-starter-webflux-ui/src/main/java/org/springdoc/webflux/ui/SwaggerWebFluxConfigurer.java