You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] 自动检测 Spring Boot 等可启动服务并生成运行配置,出现在标题栏运行配置下拉中 #2074
在多模块 Spring Boot / Spring Cloud 项目(几十个 Maven 模块、多个可启动服务)中,标题栏的运行配置下拉一直显示“没有运行配置”。要启动某个服务,只能先找到并打开它的启动类,等 JDT LS 导入完成后点 main 旁的运行图标。项目里有哪些可启动的服务、各自在哪个模块,Lithe 不会主动列出来;IntelliJ IDEA 打开同一项目后,会自动为每个 @SpringBootApplication 生成运行配置并在 Services 里列出。
Proposed solution / 建议方案
我希望 Lithe 能够:
打开项目后自动检测可启动的服务(含 main 方法的 @SpringBootApplication 类、带 spring-boot-maven-plugin 的模块等),为每个服务生成运行配置,出现在标题栏运行配置下拉中,可直接运行和调试。
Activity
1lck commentedon Nov 17, 2026
进展:
@SpringBootApplication或spring-boot-maven-plugin)和写明主类的 Java 应用会自动出现在运行配置里。运行前用你的 Maven 编译模块及其依赖的反应堆模块,再用项目的 JDK 直接启动java -cp … 主类;Spring Boot 服务支持调试。两个 PR 合入并发布新版 Maven 插件后,这个 Issue 描述的问题就解决了。
fix(desktop): provider systems that read with commands, unnamed runs …
fix(desktop): 没有运行配置时说明原因,“编辑运行配置…”不再无反应 (#2102)
feat(maven): Spring Boot 和 Java 应用出现在运行配置里,可运行、可调试 (#28)
fix(run): 删除打开项目后恒为真的 runConfigs.wanted
fix(run)+feat(workspace): 打开项目时识别启动类,并在打开前确认工作区信任(对齐 IDEA) (#2197)