I’ve tried multiple project setups using vaadin start, spring initializr, github example repo’s. 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 with HotSwapAgent: “error defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: null”. When downgrading Spring Boot to version 3.5.0 HotSwapAgent works.
Intellij Idea 2024.3.1.1 Ultimate Edition
Vaadin plugin 1.5.1
Not yet. I was hoping that someone using Vaadin with JPA, Spring Boot > 3.5.0 with HotSwapAgent encountered this issue and maybe knows how to resolve this. I’ll certainly get in touch with Spring and ask the same question there
Thanks. That looks really promising. Can’t believe after hours of searching on internet that i didn’t found that one.
One question (kind of a newbie on java/gradle coming from .NET land):
My build.gradle is using the implementation ‘org.springframework.boot:spring-boot-starter-data-jpa’ dependency but the starter doesn’t have a 4.0.0-* version on maven. If I use the data-jpa (not the starter) from maven (after adding the spring snapshot repo) that does have a 4.0.0-* version then I get errors about java.persistence.
How can I use the org.springframework.boot:spring-boot-starter-data-jpa but override the data-jpa version with the 4.0.0-* version? Is this a transistive dependency?
Got it thanks.
By the way when using Spring Boot 3.5.3 using the Run or Debug configuration everything works (including live reload using devtools). The only thing that doesn’t work is using Debug using HotSwapAgent.
Thanks. Adding implementation ‘org.springframework.data:spring-data-jpa:3.5.2-SNAPSHOT’ after implementation ‘org.springframework.boot:spring-boot-starter-data-jpa’ resolved the issue. Was thinking to complex about dependencies