Skip to content

Commit 57e0030

Browse files
committed
Swagger UI fix
1 parent 964354a commit 57e0030

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gitb-testbed-service/src/main/java/com/gitb/tbs/config/SwaggerConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) {
2727
// Serve Swagger UI static resources - version is auto-detected
2828
registry.addResourceHandler("/gitb/swagger-ui/**")
2929
.addResourceLocations("classpath:/META-INF/resources/webjars/swagger-ui/5.32.8/");
30-
// Serve custom HTML page
31-
registry.addResourceHandler("/gitb/swagger-ui.html")
32-
.addResourceLocations("classpath:/static/");
30+
// The custom HTML page (classpath:/static/gitb/swagger-ui.html) is served by Spring Boot's
31+
// default static resource handler - no explicit registration needed (and an exact-pattern
32+
// handler mapped to a directory location here would 404 while also shadowing the default).
3333
}
3434
}

0 commit comments

Comments
 (0)