@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value={org.springdoc.core.SpringDocConfigProperties.class,org.springdoc.core.SwaggerUiConfigProperties.class}) @ConditionalOnBean(value={org.springdoc.core.SpringDocConfigProperties.class,org.springdoc.core.SwaggerUiConfigProperties.class}) @AutoConfigureAfter(value={org.springdoc.core.SpringDocConfiguration.class,org.springdoc.webmvc.ui.SwaggerConfig.class}) public class SpringDocAutoConfiguration extends Object
WebSecurityCustomizer
and
applying all path of SpringDoc to be ignored. Also applies a filter registration bean to unescape JSON content for the
SpringDoc frontend.Constructor and Description |
---|
SpringDocAutoConfiguration(org.springdoc.core.SpringDocConfigProperties springDocConfigProperties,
org.springdoc.core.SwaggerUiConfigProperties swaggerUiConfigProperties)
Creates the SpringDocConfiguration with the given properties.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.boot.web.servlet.FilterRegistrationBean<SpringDocJsonDecodeFilter> |
springDocJsonDecodeFilterRegistration()
Applies
SpringDocJsonDecodeFilter to the filter chain which decodes the JSON of ApiDocs and SwaggerUi so that the SpringDoc frontend is able
to read it. |
org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer |
springDocWebSecurityCustomizer()
Creates a web security customizer for the spring security which makes the SpringDoc frontend public available.
|
public SpringDocAutoConfiguration(org.springdoc.core.SpringDocConfigProperties springDocConfigProperties, org.springdoc.core.SwaggerUiConfigProperties swaggerUiConfigProperties)
springDocConfigProperties
- the spring doc config propertiesswaggerUiConfigProperties
- the swagger ui config properties@Bean @ConditionalOnMissingBean public org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer springDocWebSecurityCustomizer()
@Bean @ConditionalOnMissingBean(name="springDocJsonDecodeFilterRegistration") public org.springframework.boot.web.servlet.FilterRegistrationBean<SpringDocJsonDecodeFilter> springDocJsonDecodeFilterRegistration()
SpringDocJsonDecodeFilter
to the filter chain which decodes the JSON of ApiDocs and SwaggerUi so that the SpringDoc frontend is able
to read it. Spring Cloud Data Flow however requires the JSON to be escaped and wrapped into quotes, because the
Angular Ui frontend is using it that way.Copyright © 2024 Pivotal Software, Inc.. All rights reserved.