[online] Update Spring Boot to 2.7.18

CH
13h ago
+5-2

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.

  • The Spring Boot BOM 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.