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

VSCode中Spring Boot 2.7.3应用无法使用Live Process Connections功能报错

解决VSCode中Spring Boot 2.7.3 Live Process连接重试失败问题
  • 检查Spring Boot Actuator依赖配置
    Spring Boot Live功能依赖Actuator组件,确保项目已引入spring-boot-starter-actuator依赖,同时开放必要端点:

    • Maven依赖示例:
      <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-actuator</artifactId>
      </dependency>
      
    • 在配置文件中添加端点开放规则:
      management.endpoints.web.exposure.include=*
      management.endpoint.health.show-details=always
      
  • 确认Actuator端口与应用端口一致
    若配置了自定义management.server.port,VSCode插件可能无法自动识别该端口,导致连接失败。检查配置文件,确保Actuator端口和应用调试端口一致,或手动在VSCode中指定正确端口。

  • 更新VSCode Spring Boot插件
    旧版本插件可能与Spring Boot 2.7.3存在兼容性问题。打开VSCode扩展面板,找到「Spring Boot Extension Pack」,更新至最新版本后重试。

  • 二次验证进程ID归属
    通过系统工具确认进程7748确实是目标Spring Boot应用:Windows用任务管理器,Linux/macOS执行ps aux | grep java命令,排除其他Java进程干扰。

  • 排查防火墙或代理干扰
    本地防火墙或代理可能阻断VSCode与应用的通信,暂时关闭防火墙或代理后重试连接。

  • 重启VSCode与应用进程
    插件或应用的缓存异常可能引发连接问题,完全关闭两者后重新启动,再尝试连接Live Process。

内容的提问来源于stack exchange,提问作者Will Huang

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.23 08:06:18