From f0169bc81c656d2e196b9e1474a1d2b9d2018f14 Mon Sep 17 00:00:00 2001 From: bnasslahsen Date: Tue, 21 Jan 2020 23:41:31 +0100 Subject: [PATCH] project update --- .../src/main/java/org/springdoc/core/Constants.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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";