File tree 3 files changed +9
-3
lines changed
java/bio/terra/app/configuration
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -209,8 +209,6 @@ dependencies {
209
209
210
210
implementation ' org.apache.httpcomponents.client5:httpclient5'
211
211
212
- // springdoc includes the swagger-ui
213
- implementation ' org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
214
212
implementation ' io.swagger.core.v3:swagger-annotations'
215
213
swaggerCodegen ' io.swagger.codegen.v3:swagger-codegen-cli'
216
214
@@ -356,6 +354,7 @@ dependencies {
356
354
generatedCompile ' org.springframework.boot:spring-boot-starter-validation'
357
355
implementation ' org.springframework.boot:spring-boot-starter-validation'
358
356
implementation ' org.webjars:webjars-locator-core'
357
+ runtimeOnly ' org.webjars.npm:swagger-ui-dist:4.3.0'
359
358
generatedCompile ' io.swagger.core.v3:swagger-annotations'
360
359
361
360
annotationProcessor ' org.springframework.boot:spring-boot-configuration-processor'
Original file line number Diff line number Diff line change 6
6
import org .springframework .stereotype .Component ;
7
7
import org .springframework .web .servlet .config .annotation .InterceptorRegistry ;
8
8
import org .springframework .web .servlet .config .annotation .PathMatchConfigurer ;
9
+ import org .springframework .web .servlet .config .annotation .ResourceHandlerRegistry ;
9
10
import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
10
11
import org .springframework .web .util .UrlPathHelper ;
11
12
@@ -30,4 +31,11 @@ public void configurePathMatch(PathMatchConfigurer configurer) {
30
31
urlPathHelper .setUrlDecode (false );
31
32
configurer .setUrlPathHelper (urlPathHelper );
32
33
}
34
+
35
+ @ Override
36
+ public void addResourceHandlers (ResourceHandlerRegistry registry ) {
37
+ registry
38
+ .addResourceHandler ("/webjars/swagger-ui-dist/**" )
39
+ .addResourceLocations ("classpath:/META-INF/resources/webjars/swagger-ui-dist/4.3.0/" );
40
+ }
33
41
}
Original file line number Diff line number Diff line change @@ -154,4 +154,3 @@ duos.basePath=https://consent.dsde-dev.broadinstitute.org
154
154
tps.basePath =https://tps.dsde-dev.broadinstitute.org
155
155
sentry.dsn =
156
156
sentry.environment =undefined
157
- springdoc.swagger-ui.path =/swagger-ui.html
You can’t perform that action at this time.
0 commit comments