Upgrade Spring Boot from 2.2.0.M6 to 2.7.18 #25
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.
Upgrade Spring Boot from 2.2.0.M6 to 2.7.18
Summary
This PR upgrades the project from Spring Boot 2.2.0.M6 (milestone/pre-release) to 2.7.18 (stable release), as a prerequisite for eventually upgrading to Java 17. All automated tests pass (181 unit tests + 22 integration tests).
Key Changes:
Review & Testing Checklist for Human
This is a major framework upgrade. While all automated tests pass, manual verification is recommended:
mvn spring-boot:run -Dspring-boot.run.profiles=devand verify it starts without errors/profiles/{patronId}/holds/) to ensure HATEOAS links are generated correctlyTest Plan
http://localhost:8080/actuator/healthhttp://localhost:8080/h2-consoleNotes
Spring HATEOAS API Changes: Updated
PatronProfileControllerto useCollectionModel.of()andEntityModel.of()instead of constructors (4 locations updated). These were the only occurrences found, but please verify.H2 Database Compatibility: Used MODE=LEGACY in database URLs to maintain compatibility with H2 1.x SQL syntax. The SQL scripts use older syntax like
INTEGER IDENTITYwhich would otherwise fail in H2 2.x. A future improvement would be migrating these scripts to H2 2.x native syntax.Test Results: All tests pass locally:
Link to Devin run: https://app.devin.ai/sessions/3b7e3bb90cfd43b48642a7299f2e7966
Requested by: @callummiles