Spring Boot > 3.5.0 + Spring Data JPA + HotSwapAgent + Vaadin causes injection error
I’ve tried multiple project setups using Vaadin Start, Spring Initializr, and various GitHub example repositories. Every project setup (be it Gradle or Maven) with Spring Boot > 3.5.0 and Spring Data JPA throws exceptions when trying to inject repositories with CDI and using Debug mode with HotSwapAgent:
error defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: null
When downgrading Spring Boot to version 3.5.0, HotSwapAgent works as expected and no exceptions occur.
Environment:
- IntelliJ IDEA 2024.3.1.1 Ultimate Edition
- Vaadin plugin 1.5.1
- Spring Boot 3.5.3
- Vaadin 24.8.3
What I tried:
- Tried different versions of Vaadin.
Vaadin version does not seem to have any impact on the problem. - Tried multiple Spring Boot versions.
Using Spring Boot 3.5.0 works, but any version > 3.5.0 causes this issue.
Questions:
- Is this a known compatibility issue with HotSwapAgent + Spring Boot > 3.5.0?
- Are there any workarounds or recommended configurations for using HotSwapAgent with newer Spring Boot versions?
Thanks in advance for your help!