Upgrade Spring Boot from 2.1.4.RELEASE to 2.7.18 #62
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.1.4.RELEASE to 2.7.18
Summary
Upgraded Spring Boot parent version from 2.1.4.RELEASE to 2.7.18 as part of the Java 8 to Java 11 migration plan (Component 2: Spring Boot Framework Upgrade). This required upgrading Springfox from 2.9.2 to 3.0.0 and implementing a compatibility workaround for Spring Boot 2.6+ changes.
Key changes:
springfox-boot-starter)SpringfoxConfigwith BeanPostProcessor to handle Spring Boot 2.6+ PathPatternParser compatibilityjunit-vintage-enginefor JUnit 4 test compatibility on JUnit 5 platformspring.mvc.pathmatch.matching-strategy: ant_path_matcherfor SpringfoxAutomated testing performed:
✅ Build:
mvn compilepassed✅ Tests:
mvn testpassed (all tests)✅ Runtime:
mvn spring-boot:runstarted successfully✅ Swagger UI: Loaded correctly at
http://localhost:8989/bank-api/swagger-ui/Review & Testing Checklist for Human
/swagger-ui.htmlto/swagger-ui//h2-console), actuator endpoints (/actuator), and any authentication/security flows work as expectedNotes
SpringfoxConfiguses reflection to filter handler mappings incompatible with Spring Boot 2.6+. This is a known workaround for Springfox 3.0 compatibility but should be monitored for potential issues.Link to Devin run: https://app.devin.ai/sessions/6463d6b9dffc4722b419d2e5ebc36dba
Requested by: Jaime Mizrachi (@jaime-leo)