springdoc / springdoc-openapi-demos

Demo for OpenAPI 3 with spring-boot
http://springdoc.org
Apache License 2.0
493 stars 267 forks source link

Using simple index.html under static does not work #10

Closed lofidewanto closed 4 years ago

lofidewanto commented 4 years ago

Hi All,

I have following problem.

After this I added

<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-ui</artifactId>
    <version>1.1.44</version>
</dependency>

Is there anything I should configure?

BTW. Trying the same thing with SpringFox 2.9.2 works without any problems. I could get the swagger-ui and also the index.html. But I need to configure following:

@Configuration
@EnableSwagger2
public class SpringFoxConfig {
    @Bean
    public Docket api() {
        return new Docket(DocumentationType.SWAGGER_2).select().apis(RequestHandlerSelectors.any())
                .paths(PathSelectors.any()).build();
    }
}

Thanks a lot.

lofidewanto commented 4 years ago

Using 1.2.25 works, thanks