diff --git a/springdoc-openapi-common/src/main/java/org/springdoc/core/Constants.java b/springdoc-openapi-common/src/main/java/org/springdoc/core/Constants.java index 310abb913..4f9153ae7 100644 --- a/springdoc-openapi-common/src/main/java/org/springdoc/core/Constants.java +++ b/springdoc-openapi-common/src/main/java/org/springdoc/core/Constants.java @@ -1,5 +1,7 @@ package org.springdoc.core; +import org.springframework.util.ResourceUtils; + import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR; public final class Constants { @@ -30,7 +32,7 @@ public final class Constants { public static final String SPRINGDOC_ACTUATOR_DOC_DESCRIPTION = "Spring Boot Actuator Web API Documentation"; public static final String DEFAULT_WEB_JARS_PREFIX_URL = "/webjars"; public static final String WEB_JARS_PREFIX_URL = "${springdoc.webjars.prefix:"+DEFAULT_WEB_JARS_PREFIX_URL+"}"; - public static final String CLASSPATH_RESOURCE_LOCATION = "classpath:/META-INF/resources"; + public static final String CLASSPATH_RESOURCE_LOCATION = ResourceUtils.CLASSPATH_URL_PREFIX + "/META-INF/resources"; public static final String SWAGGER_UI_URL = "/swagger-ui/index.html"; public static final String SWAGGER_UI_OAUTH_REDIRECT_URL = "/swagger-ui/oauth2-redirect.html"; public static final String APPLICATION_OPENAPI_YAML = "application/vnd.oai.openapi";