Upgrade Spring Boot from 2.6.3 to 3.5.10#10
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
Conversation
Major changes: - Update Spring Boot from 2.6.3 to 3.5.10 - Update Java compatibility from 11 to 17 - Migrate javax.* imports to jakarta.* namespace (Jakarta EE 10) - Update Spring Security configuration for Spring Security 6 - Replace WebSecurityConfigurerAdapter with SecurityFilterChain - Use new lambda-based configuration style - Replace antMatchers with requestMatchers - Update DGS framework from 4.9.21 to 9.2.2 - Update DGS codegen plugin from 5.0.6 to 6.3.0 - Update JJWT from 0.11.2 to 0.12.6 - Use new parser API (parser().verifyWith() instead of parserBuilder()) - Use Keys.hmacShaKeyFor() for key generation - Update MyBatis Spring Boot Starter from 2.2.2 to 4.0.1 - Update Gradle wrapper from 7.4 to 8.14 - Update other dependencies to compatible versions: - rest-assured: 4.5.1 -> 5.5.0 - joda-time: 2.10.13 -> 2.13.0 - sqlite-jdbc: 3.36.0.3 -> 3.47.2.0 - spotless: 6.2.1 -> 6.25.0 - dependency-management: 1.0.11.RELEASE -> 1.1.7 Code changes: - Fix GraphQLCustomizeExceptionHandler for new DataFetcherExceptionHandler API - Fix CustomizeExceptionHandler for HttpStatusCode parameter type - Fix ArticleDatafetcher and CommentDatafetcher to use generated PageInfo type - Add test configuration for Spring Boot 3 compatibility - Make DuplicatedUsernameValidator public for test imports Co-Authored-By: Sam Fertig <sam.fertig@codeium.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
- Update CI workflow to use Java 17 (required by Spring Boot 3) - Downgrade MyBatis Spring Boot Starter from 4.0.1 to 3.0.4 to fix NullPointerException in MybatisProperties.CoreConfiguration.applyTo - Remove mybatis.configuration.default-statement-timeout property - Add classpath: prefix to mybatis.mapper-locations - Add spring.main.allow-bean-definition-overriding=true for bean override Co-Authored-By: Sam Fertig <sam.fertig@codeium.com>
|
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.




Upgrade Spring Boot from 2.6.3 to 3.5.10
Summary
This PR upgrades the application from Spring Boot 2.6.3 to 3.5.10, which is a major version upgrade requiring significant code changes due to breaking API changes in Spring Boot 3.x.
Key changes:
javax.*imports migrated tojakarta.*(Jakarta EE 10)WebSecurityConfigurerAdapterwithSecurityFilterChainbean and lambda-based configurationparser().verifyWith()instead ofparserBuilder())DataFetcherExceptionHandlerinterface (now async)Dependency updates:
Configuration changes:
spring.main.allow-bean-definition-overriding=truefor Spring Boot 3 compatibilitymybatis.mapper-locationsto useclasspath:prefixmybatis.configuration.default-statement-timeout(incompatible with MyBatis 3.0.4)Updates since last revision
NullPointerExceptioninMybatisProperties.CoreConfiguration.applyToReview & Testing Checklist for Human
WebSecurityConfig.javawas completely rewritten fromWebSecurityConfigurerAdaptertoSecurityFilterChain- verify all endpoints have correct access rulesDefaultJwtService.javawith new JJWT API)/graphqland/graphiqlwork correctly with the new DGS version and async exception handlerRecommended test plan:
./gradlew bootRunPOST /users(registration) - should return JWT tokenPOST /users/login(authentication)GET /articlesandGET /tagsendpoints/graphiqlNotes
src/test/resources/application.propertieswith test-specific configurationDuplicatedUsernameValidatorandDuplicatedEmailValidatorimportable in test configurationLink to Devin run: https://app.devin.ai/sessions/2436d73fecce434987a7a4ab44b8b689
Requested by: Sam Fertig (@samfert-codeium)