Repository navigation
[online] Update Spring Boot to 2.7.18 - #25731
Open
ChihweiLHBird wants to merge 1 commit into
Open
ChihweiLHBird wants to merge 1 commit into
ChihweiLHBird wants to merge 1 commit into
Conversation
ChihweiLHBird
force-pushed
the
chore/online-spring-boot-2.7
branch
from
November 19, 2026 17:30
5aa53b9 to
52f31a7
Compare
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.
ChihweiLHBird
force-pushed
the
chore/online-spring-boot-2.7
branch
from
November 20, 2026 07:40
52f31a7 to
09bea5c
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update
openapi-generator-onlinefrom Spring Boot 2.5.14 to 2.7.18, the last 2.x release and the newest one that runs on Java 11.Through the Spring Boot BOM this also moves the service to Spring Framework 5.3.31, Tomcat 9.0.83 and snakeyaml 1.30.
About the earlier attempt
#13899 moved this module to Spring Boot 2.7.5 and was reverted in #14755 because the image failed to start (#14589): springfox 3.0.0 does not work with the
PathPatternParserthat Spring Boot 2.6 made the default.This PR sets
spring.mvc.pathmatch.matching-strategy=ant-path-matcher, which keeps the path matcher the service uses today. The module's tests fail without that line, so CI now catches the problem. The line carries a TODO to remove it once springfox is replaced by springdoc.spring.resources.static-locationsis removed: Spring Boot 2.6 dropped the property, and its value was the default of its replacement.PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
Summary by cubic
Updates the online generator service from Spring Boot 2.5.14 to 2.7.18, the last 2.x release and the newest one that runs on Java 11. Through the Spring Boot BOM this also moves the service to Spring Framework 5.3.31, Tomcat 9.0.83, and snakeyaml 1.30.
spring.mvc.pathmatch.matching-strategy=ant-path-matcherbecause springfox 3.0.0 fails to start with thePathPatternParserthat Spring Boot 2.6 made the default; this broke the earlier upgrade to 2.7.5, which was reverted. The line carries a TODO to remove it once springfox is replaced by springdoc.spring.resources.static-locations; Spring Boot 2.6 dropped the property, and its value was already the default of its replacement.Written for commit 09bea5c. Summary will update on new commits.