Class SwaggerAutoConfiguration


  • @Configuration
    @EnableOpenApi
    @PropertySource("classpath:swagger-config.properties")
    public class SwaggerAutoConfiguration
    extends Object
    Provides base springfox configuration for swagger auto-generated specification file. It provides two swagger specification files: the default one is available under `v2/api-docs` or `v2/api-docs?group=default` and provides specification for Alfresco MediaType format This configuration is not self-contained: the one adding this as dependency should provide a bean of type Predicate that will be injected under Docket.select(). I.e test test
         @Bean
         public Predicate<RequestHandler> apiSelector() {
             return RequestHandlerSelectors.basePackage("org.activiti.cloud.services");
         }
      
    • Constructor Detail

      • SwaggerAutoConfiguration

        public SwaggerAutoConfiguration()
    • Method Detail

      • swaggerDocketBuilder

        @Bean
        @ConditionalOnMissingBean
        public SwaggerDocketBuilder swaggerDocketBuilder​(org.springframework.boot.info.BuildProperties buildProperties,
                                                         com.fasterxml.classmate.TypeResolver typeResolver,
                                                         List<DocketCustomizer> docketCustomizers)
      • pathPrefixTransformationFilter

        @Bean
        @ConditionalOnMissingBean
        public PathPrefixTransformationFilter pathPrefixTransformationFilter​(@Value("${activiti.cloud.swagger.base-path:/}")
                                                                             String swaggerBasePath)
      • springfoxHandlerProviderBeanPostProcessor

        @Bean
        public static org.springframework.beans.factory.config.BeanPostProcessor springfoxHandlerProviderBeanPostProcessor()
        Springfox workaround required by Spring Boot 2.6 See https://github.com/springfox/springfox/issues/346