From 09bea5c3bc67857ab891dc5a30b4e9cd0ab7681e Mon Sep 17 00:00:00 2001 From: Zhiwei Liang Date: Wed, 18 Nov 2026 06:22:17 +0000 Subject: [PATCH] [online] Update Spring Boot to 2.7.18 Move openapi-generator-online from Spring Boot 2.5.14 to 2.7.18, the last 2.x release and the newest one that runs on Java 11. application.properties: - Set spring.mvc.pathmatch.matching-strategy=ant-path-matcher. springfox 3.0.0 fails at start-up with the PathPatternParser that Spring Boot 2.6 made the default. That is what broke the earlier upgrade to 2.7.5, which was reverted. The module's tests fail without this line. - Drop spring.resources.static-locations. Spring Boot 2.6 removed the property, and its value was the default of its replacement. --- modules/openapi-generator-online/pom.xml | 2 +- .../src/main/resources/application.properties | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator-online/pom.xml b/modules/openapi-generator-online/pom.xml index 177947000298..7bed6d4825ef 100644 --- a/modules/openapi-generator-online/pom.xml +++ b/modules/openapi-generator-online/pom.xml @@ -12,7 +12,7 @@ jar openapi-generator-online - 2.5.14 + 2.7.18 3.0.0 **/org/openapitools/codegen/online/**/* diff --git a/modules/openapi-generator-online/src/main/resources/application.properties b/modules/openapi-generator-online/src/main/resources/application.properties index 98e895618562..7751d2caed6c 100644 --- a/modules/openapi-generator-online/src/main/resources/application.properties +++ b/modules/openapi-generator-online/src/main/resources/application.properties @@ -2,4 +2,7 @@ springfox.documentation.swagger.v2.path=/api-docs server.port=8080 spring.jackson.date-format=org.openapitools.codegen.online.RFC3339DateFormat spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false -spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/ +# TODO: remove this line (back to the default PathPatternParser) once springfox is replaced by springdoc. +# springfox 3.0.0 only works with the Ant-style path matcher, which is no longer the default since Spring Boot 2.6; +# without this line the application fails to start. +spring.mvc.pathmatch.matching-strategy=ant-path-matcher