Skip to content

chore(SpringBoot): Upgrade to 3.4.13 - #356

Open
hirokiterashima wants to merge 5 commits into
developfrom
spring-boot-3.4
Open

hirokiterashima wants to merge 5 commits into
developfrom
spring-boot-3.4

Conversation

@hirokiterashima

@hirokiterashima hirokiterashima commented Sep 17, 2026

Copy link
Copy Markdown
Member

Description

Upgrades the application from Spring Boot 3.3.13 to Spring Boot 3.4.13 (and underlying dependencies including Spring Framework 6.2 and Hibernate 6.6), aligns JPA entity ID generation strategies, cleans up deprecated configurations, and adds standard Java 14 @Serial annotations.

Summary of Changes

1. Spring Boot 3.4 Upgrade

  • Bumped <parent> version in pom.xml from 3.3.13 to 3.4.13.

2. JPA & Hibernate Configuration

  • Entity ID Generation Strategy: Changed @GeneratedValue(strategy = GenerationType.AUTO) to GenerationType.IDENTITY in Chat.java and ChatMessage.java to align with the MySQL auto_increment schema and all other domain entities.
  • Deprecated ID Generator Mapping: Removed obsolete spring.jpa.hibernate.use-new-id-generator-mappings setting from HibernateConfig.java and sample property files (Hibernate 6 no longer supports disabling new generator mappings).

3. Dependency Cleanup

  • Replaced WordUtils.wrap() in ProjectServiceImpl.java with a native pure-Java wrapText(String, int) helper method, eliminating the need to add org.apache.commons:commons-text as an explicit dependency.

4. Code Modernization

  • Added @Serial annotation to serialVersionUID fields across domain, parameter, and exception classes.

5. New tests

  • Added unit tests for chat/chatbot domain, project text wrapping, and controller utilities

Verification

  • Compilation: mvn clean test-compile compiles cleanly with zero errors.
  • Unit & Integration Tests: Executed mvn test — all 585 tests passed with 0 failures and 0 errors (1 skipped, matching baseline).
  • Packaging: Verified WAR packaging with mvn package -DskipTests; wise.war generated and repackaged cleanly via Spring Boot 3.4.13 loader tools.
  • Application: Restart wise-api Docker container and make sure that WISE works as before. Test thoroughly (save student data, author new units, etc)

@hirokiterashima hirokiterashima changed the title Spring-boot-3.4 chore(SpringBoot): Upgrade to 3.4.13 Sep 17, 2026
@hirokiterashima hirokiterashima self-assigned this Sep 17, 2026
@hirokiterashima hirokiterashima added the enhancement New feature or request label Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant