File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
springdoc-openapi-common/src/main/java/org/springdoc/core
springdoc-openapi-ui/src/main/java/org/springdoc/ui Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ public final class Constants {
29
29
public static final String SPRINGDOC_ACTUATOR_DOC_URL = "https://docs.spring.io/spring-boot/docs/current/actuator-api/html/" ;
30
30
public static final String SPRINGDOC_ACTUATOR_DOC_DESCRIPTION = "Spring Boot Actuator Web API Documentation" ;
31
31
public static final String DEFAULT_WEB_JARS_PREFIX_URL = "/webjars" ;
32
- public static final String WEB_JARS_PREFIX_URL = "${springdoc.webjars.prefix:#{T(org.springdoc.core.Constants).DEFAULT_WEB_JARS_PREFIX_URL}}" ;
32
+ public static final String WEB_JARS_PREFIX_URL = "${springdoc.webjars.prefix:" +DEFAULT_WEB_JARS_PREFIX_URL +"}" ;
33
+ public static final String CLASSPATH_RESOURCE_LOCATION = "classpath:/META-INF/resources" ;
33
34
public static final String SWAGGER_UI_URL = "/swagger-ui/index.html" ;
34
35
public static final String SWAGGER_UI_OAUTH_REDIRECT_URL = "/swagger-ui/oauth2-redirect.html" ;
35
36
public static final String APPLICATION_OPENAPI_YAML = "application/vnd.oai.openapi" ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) {
39
39
}
40
40
uiRootPath .append ("/**" );
41
41
String webJarsLocation = webJarsPrefixUrl + DEFAULT_PATH_SEPARATOR ;
42
- registry .addResourceHandler (uiRootPath + "/swagger-ui/**" ).addResourceLocations (webJarsLocation )
42
+ registry .addResourceHandler (uiRootPath + "/swagger-ui/**" ).addResourceLocations (CLASSPATH_RESOURCE_LOCATION + webJarsLocation )
43
43
.resourceChain (false )
44
44
.addTransformer (swaggerIndexTransformer );
45
45
}
You can’t perform that action at this time.
0 commit comments