Skip to content

[online] Update Spring Boot to 2.7.18 - #25731

Open
ChihweiLHBird wants to merge 1 commit into
OpenAPITools:masterfrom
ChihweiLHBird:chore/online-spring-boot-2.7
Open

ChihweiLHBird wants to merge 1 commit into
OpenAPITools:masterfrom
ChihweiLHBird:chore/online-spring-boot-2.7

Conversation

@ChihweiLHBird

@ChihweiLHBird ChihweiLHBird commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Update 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.

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 PathPatternParser that 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-locations is removed: Spring Boot 2.6 dropped the property, and its value was the default of its replacement.

PR checklist

  • Read the contribution guidelines.
  • Run the following to build the project and update samples:
    ./mvnw clean package || exit
    ./bin/generate-samples.sh ./bin/configs/*.yaml || exit
    ./bin/utils/export_docs_generators.sh || exit
    
    (For Windows users, please run the script in WSL)
    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.
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

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.

  • Sets spring.mvc.pathmatch.matching-strategy=ant-path-matcher because springfox 3.0.0 fails to start with the PathPatternParser that 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.
  • Removes 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.

View guided diff

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

View guided diff | Re-trigger cubic

@ChihweiLHBird
ChihweiLHBird force-pushed the chore/online-spring-boot-2.7 branch from 5aa53b9 to 52f31a7 Compare November 19, 2026 17:30
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
ChihweiLHBird force-pushed the chore/online-spring-boot-2.7 branch from 52f31a7 to 09bea5c Compare November 20, 2026 07:40

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant