From d0da4a0e774371db2a35c7cfde046a0a63111808 Mon Sep 17 00:00:00 2001 From: sunshiningsoo Date: Thu, 8 Feb 2024 04:03:22 +0900 Subject: [PATCH] Fix typo in Constants --- .../src/main/java/org/springdoc/core/utils/Constants.java | 6 +++--- .../org/springdoc/webflux/ui/SwaggerWelcomeActuator.java | 6 +++--- .../org/springdoc/webflux/ui/SwaggerWelcomeWebFlux.java | 4 ++-- .../org/springdoc/webmvc/ui/SwaggerWelcomeActuator.java | 6 +++--- .../java/org/springdoc/webmvc/ui/SwaggerWelcomeWebMvc.java | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/Constants.java b/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/Constants.java index 342224c90..06953f062 100644 --- a/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/Constants.java +++ b/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/Constants.java @@ -55,14 +55,14 @@ public final class Constants { public static final String API_DOCS_URL = "${springdoc.api-docs.path:#{T(org.springdoc.core.utils.Constants).DEFAULT_API_DOCS_URL}}"; /** - * The constant SWAGGGER_CONFIG_FILE. + * The constant SWAGGER_CONFIG_FILE. */ - public static final String SWAGGGER_CONFIG_FILE = "swagger-config"; + public static final String SWAGGER_CONFIG_FILE = "swagger-config"; /** * The constant SWAGGER_CONFIG_URL. */ - public static final String SWAGGER_CONFIG_URL = API_DOCS_URL + DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE; + public static final String SWAGGER_CONFIG_URL = API_DOCS_URL + DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE; /** * The constant YAML. diff --git a/springdoc-openapi-starter-webflux-ui/src/main/java/org/springdoc/webflux/ui/SwaggerWelcomeActuator.java b/springdoc-openapi-starter-webflux-ui/src/main/java/org/springdoc/webflux/ui/SwaggerWelcomeActuator.java index f53f7ed10..f2289dfff 100644 --- a/springdoc-openapi-starter-webflux-ui/src/main/java/org/springdoc/webflux/ui/SwaggerWelcomeActuator.java +++ b/springdoc-openapi-starter-webflux-ui/src/main/java/org/springdoc/webflux/ui/SwaggerWelcomeActuator.java @@ -45,7 +45,7 @@ import static org.springdoc.core.utils.Constants.DEFAULT_API_DOCS_ACTUATOR_URL; import static org.springdoc.core.utils.Constants.DEFAULT_SWAGGER_UI_ACTUATOR_PATH; -import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE; +import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE; import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR; /** @@ -58,7 +58,7 @@ public class SwaggerWelcomeActuator extends SwaggerWelcomeCommon { /** * The constant SWAGGER_CONFIG_ACTUATOR_URL. */ - private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE; + private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE; /** * The Web endpoint properties. @@ -147,7 +147,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) { protected String buildSwaggerConfigUrl() { return contextPath + webEndpointProperties.getBasePath() + DEFAULT_PATH_SEPARATOR + DEFAULT_SWAGGER_UI_ACTUATOR_PATH - + DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE; + + DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE; } } diff --git a/springdoc-openapi-starter-webflux-ui/src/main/java/org/springdoc/webflux/ui/SwaggerWelcomeWebFlux.java b/springdoc-openapi-starter-webflux-ui/src/main/java/org/springdoc/webflux/ui/SwaggerWelcomeWebFlux.java index 58d2dd69b..17509ca97 100644 --- a/springdoc-openapi-starter-webflux-ui/src/main/java/org/springdoc/webflux/ui/SwaggerWelcomeWebFlux.java +++ b/springdoc-openapi-starter-webflux-ui/src/main/java/org/springdoc/webflux/ui/SwaggerWelcomeWebFlux.java @@ -39,7 +39,7 @@ import org.springframework.web.util.UriComponentsBuilder; import static org.springdoc.core.utils.Constants.SWAGGER_UI_PATH; -import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE; +import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE; import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR; /** @@ -137,7 +137,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) { */ @Override protected String buildSwaggerConfigUrl() { - return this.apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE; + return this.apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE; } } diff --git a/springdoc-openapi-starter-webmvc-ui/src/main/java/org/springdoc/webmvc/ui/SwaggerWelcomeActuator.java b/springdoc-openapi-starter-webmvc-ui/src/main/java/org/springdoc/webmvc/ui/SwaggerWelcomeActuator.java index f0677d5a7..521769c26 100644 --- a/springdoc-openapi-starter-webmvc-ui/src/main/java/org/springdoc/webmvc/ui/SwaggerWelcomeActuator.java +++ b/springdoc-openapi-starter-webmvc-ui/src/main/java/org/springdoc/webmvc/ui/SwaggerWelcomeActuator.java @@ -41,7 +41,7 @@ import static org.springdoc.core.utils.Constants.DEFAULT_API_DOCS_ACTUATOR_URL; import static org.springdoc.core.utils.Constants.DEFAULT_SWAGGER_UI_ACTUATOR_PATH; -import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE; +import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE; import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR; /** @@ -50,7 +50,7 @@ @ControllerEndpoint(id = DEFAULT_SWAGGER_UI_ACTUATOR_PATH) public class SwaggerWelcomeActuator extends SwaggerWelcomeCommon { - private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE; + private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE; /** * The Web endpoint properties. @@ -117,7 +117,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) { protected String buildSwaggerConfigUrl() { return contextPath + webEndpointProperties.getBasePath() + DEFAULT_PATH_SEPARATOR + DEFAULT_SWAGGER_UI_ACTUATOR_PATH - + DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE; + + DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE; } } diff --git a/springdoc-openapi-starter-webmvc-ui/src/main/java/org/springdoc/webmvc/ui/SwaggerWelcomeWebMvc.java b/springdoc-openapi-starter-webmvc-ui/src/main/java/org/springdoc/webmvc/ui/SwaggerWelcomeWebMvc.java index fbdd50511..e1a47a299 100644 --- a/springdoc-openapi-starter-webmvc-ui/src/main/java/org/springdoc/webmvc/ui/SwaggerWelcomeWebMvc.java +++ b/springdoc-openapi-starter-webmvc-ui/src/main/java/org/springdoc/webmvc/ui/SwaggerWelcomeWebMvc.java @@ -39,7 +39,7 @@ import static org.springdoc.core.utils.Constants.MVC_SERVLET_PATH; import static org.springdoc.core.utils.Constants.SWAGGER_UI_PATH; -import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE; +import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE; import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR; /** @@ -57,7 +57,7 @@ public class SwaggerWelcomeWebMvc extends SwaggerWelcomeCommon { /** * The Mvc servlet path. */ -// To keep compatiblity with spring-boot 1 - WebMvcProperties changed package from srping 4 to spring 5 +// To keep compatiblity with spring-boot 1 - WebMvcProperties changed package from spring 4 to spring 5 @Value(MVC_SERVLET_PATH) private String mvcServletPath; @@ -142,7 +142,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) { */ @Override protected String buildSwaggerConfigUrl() { - return apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE; + return apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE; } } \ No newline at end of file