swaggerblueprint

Blueprint project
git clone git://git.wimdupont.com/swaggerblueprint.git
Log | Files | Refs | README | LICENSE

commit 0358970ba646427e8773594f113f7d1b880bd2b9
parent 208af447ef45d57855cd187ece8b85f0c3afbefe
Author: Wim Dupont <wim@wimdupont.com>
Date:   Fri,  1 Dec 2023 18:01:20 +0100

java 21 upgrade

Diffstat:
Mpom.xml | 4++--
Msrc/main/java/com/wimdupont/swagger/blueprint/config/SwaggerConfig.java | 5++++-
Msrc/main/resources/application.properties | 3---
3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/pom.xml b/pom.xml @@ -15,8 +15,8 @@ </parent> <properties> <springdoc-openapi.version>2.2.0</springdoc-openapi.version> - <maven.compiler.source>17</maven.compiler.source> - <maven.compiler.target>17</maven.compiler.target> + <maven.compiler.source>21</maven.compiler.source> + <maven.compiler.target>21</maven.compiler.target> </properties> <dependencies> diff --git a/src/main/java/com/wimdupont/swagger/blueprint/config/SwaggerConfig.java b/src/main/java/com/wimdupont/swagger/blueprint/config/SwaggerConfig.java @@ -2,6 +2,8 @@ package com.wimdupont.swagger.blueprint.config; import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.info.Info; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springdoc.core.models.GroupedOpenApi; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -14,6 +16,7 @@ import java.nio.file.Files; @Configuration public class SwaggerConfig { private static final String DOCUMENTATION_FILE = "documentation.md"; + private static final Logger LOGGER = LoggerFactory.getLogger(SwaggerConfig.class); @Bean public OpenAPI getOpenAPI() { @@ -30,7 +33,7 @@ public class SwaggerConfig { try { info.description(new String(Files.readAllBytes(new File(url.getFile()).toPath()))); } catch (IOException e) { - e.printStackTrace(); + LOGGER.error(e.getMessage(), e); } } return info; diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties @@ -1,6 +1,3 @@ -springdoc.packagesToScan=com.wimdupont.swagger.blueprint -springdoc.pathsToMatch=/v1, /blueprints/** - server.error.include-message=ALWAYS server.error.include-binding-errors=ON_PARAM server.error.include-exception=false