You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Spring Boot 3.5.0以上版本结合Spring Data JPA、Vaadin 24及HotSwapAgent时的注入异常问题咨询

Spring Boot 3.5.0以上版本结合Spring Data JPA、Vaadin 24及HotSwapAgent时的注入异常问题咨询

大家好,我最近在搭建项目时踩了个棘手的兼容性坑,想请教下社区的各位大佬:

问题场景

我试过用Vaadin Start、Spring Initializr以及各种GitHub示例仓库搭建不同的项目(不管是Gradle还是Maven构建),只要组合了Spring Boot 3.5.0以上版本、Spring Data JPA、Vaadin 24.x,并且在Debug模式下启用HotSwapAgent,就会触发注入异常,具体报错信息如下:

error defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: null

但只要把Spring Boot降级到3.5.0版本,HotSwapAgent就能正常工作,完全不会抛出异常。

我的环境信息

  • IntelliJ IDEA 2024.3.1.1 Ultimate Edition
  • Vaadin插件 1.5.1
  • 出问题的Spring Boot版本:3.5.3
  • Vaadin 24.8.3

已经尝试过的排查步骤

  • 切换过多个Vaadin版本:测试后发现Vaadin的版本对这个问题没有任何影响,不管用哪个24.x的子版本,问题都存在
  • 切换不同的Spring Boot版本:只有3.5.0版本能正常运行,任何高于3.5.0的版本都会触发这个注入异常

我的疑问

  1. 这是不是HotSwapAgent和Spring Boot 3.5.0以上版本之间已知的兼容性问题?
  2. 有没有什么临时的解决方案或者推荐的配置,能让HotSwapAgent和新版Spring Boot配合使用?

麻烦各位大佬帮忙看看,提前感谢大家的帮助!

内容来源于stack exchange

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.07 09:58:04