Skip to content

Migrate UserFront from Java 8 / Spring Boot 1.5.4 to Java 17 / Spring Boot 3.4.5#6

Open
devin-ai-integration[bot] wants to merge 1 commit into
masterfrom
devin/1777562387-spring-boot-3-migration
Open

Migrate UserFront from Java 8 / Spring Boot 1.5.4 to Java 17 / Spring Boot 3.4.5#6
devin-ai-integration[bot] wants to merge 1 commit into
masterfrom
devin/1777562387-spring-boot-3-migration

Conversation

@devin-ai-integration
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot commented Apr 30, 2026

Summary

Big-bang migration of the UserFront Spring Boot application from Java 8 / Spring Boot 1.5.4 to Java 17 / Spring Boot 3.4.5.

Changes

Build & Dependencies (pom.xml)

  • Spring Boot parent: 1.5.4.RELEASE3.4.5
  • Java version: 1.817
  • MySQL connector: mysql:mysql-connector-javacom.mysql:mysql-connector-j
  • Removed redundant spring-boot-starter-jdbc (transitively included by spring-boot-starter-data-jpa)

Configuration (application.properties)

  • Removed deprecated hibernate.dialect = org.hibernate.dialect.MySQL5Dialect (Hibernate 6 auto-detects)
  • Replaced deprecated datasource pool properties with HikariCP equivalents

Maven Wrapper

  • Updated from Maven 3.5.0 → 3.9.9

Spring Security 6 (SecurityConfig.java)

  • Removed WebSecurityConfigurerAdapter (deleted in Spring Security 6)
  • @EnableGlobalMethodSecurity@EnableMethodSecurity
  • Rewrote to use @Bean SecurityFilterChain with lambda DSL
  • antMatchersrequestMatchers, authorizeRequestsauthorizeHttpRequests
  • Removed manual AuthenticationManagerBuilder config (Spring Boot 3.x auto-discovers UserDetailsService + PasswordEncoder beans)

Jakarta EE namespace migration

  • All javax.servletjakarta.servlet in RequestFilter.java
  • All javax.persistencejakarta.persistence in 9 domain entity files

Hibernate 6 compatibility

  • GenerationType.AUTOGenerationType.IDENTITY in all 8 entities (prevents table-based sequence emulation on MySQL)

Spring Data 3.x

  • findOne(id)findById(id).orElse(null) in AppointmentServiceImpl.java

Compilation verified: ./mvnw clean compile passes.

Review & Testing Checklist for Human

  • Verify ./mvnw clean compile passes on your environment with Java 17+
  • Deploy to a MySQL-backed environment and confirm the app starts without Hibernate schema errors
  • Test login/logout flow (SecurityConfig rewrite changes auth configuration)
  • Test appointment CRUD (uses the updated findById call)
  • Verify CORS filter still works for Angular frontend requests

Notes

  • Tests require a running MySQL instance so ./mvnw test was not run in CI (no DB available). Manual verification of compilation was done successfully.
  • The RequestFilter CORS filter and all controllers/services compiled cleanly with no other javaxjakarta issues found.

Link to Devin session: https://app.devin.ai/sessions/db958b69c57a4220b7dcac0a91258669
Requested by: @stephencornwell


Devin Review

Status Commit
⚪ Not started

💡 Connect your GitHub account to enable automatic code reviews.

Open in Devin Review (Staging)
Open in Devin Review

… Boot 3.4.5

- Update Spring Boot parent from 1.5.4.RELEASE to 3.4.5
- Update Java version from 1.8 to 17
- Replace mysql-connector-java with mysql-connector-j
- Remove redundant spring-boot-starter-jdbc dependency
- Remove deprecated MySQL5Dialect (Hibernate 6 auto-detects)
- Replace deprecated datasource pool properties with HikariCP properties
- Update Maven wrapper to 3.9.9
- Rewrite SecurityConfig for Spring Security 6 (lambda DSL, no WebSecurityConfigurerAdapter)
- Replace all javax.servlet imports with jakarta.servlet
- Replace all javax.persistence imports with jakarta.persistence
- Change GenerationType.AUTO to GenerationType.IDENTITY for MySQL compatibility
- Fix findOne() -> findById().orElse(null) for Spring Data 3.x

Co-Authored-By: Stephen Cornwell <stephen@cognition.ai>
@devin-ai-integration
Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Copy Markdown
Author

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

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