File tree Expand file tree Collapse file tree
gitb-testbed-service/src/main/java/com/gitb/tbs/config Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments