Idea Community社区版如何添加Run Dashboard

最近在学习spring cloud,跟着视频添加run dashboard,发现里面介绍的方法无法适用于idea community(社区版)。

然后自己研究了一下,成功添加,下面分享自己的方法。

如图,我的项目里添加了两个module,我想通过run dashboard同时启动这两个module

注:每个module都有@SpringBootApplication主方法

pom:

复制代码
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

1.如图找到View -> Tool Windows -> Services

2.找到左下角的Services面板,点击Add Service -> Run Configuration Type

  1. 选择Application
  1. module就自动出现在面板中了,点击Run. (鼠标选中Application再Run,就会启动下面的所有module,选中某一个module则只会启动选中的那个)

注:如果Application下面没有module,可以单独Run一下module:

再重新Add Service -> Application 就可以看到了

  1. 这时我们能看到两个module都同时启动啦

虽然不是出现 Run Dashboard按钮,但是效果是一样的。如果你也使用idea community,希望能帮到你。

相关推荐
唐青枫13 小时前
Java Spring WebFlux 实战指南:用 Mono、Flux 和 WebClient 写响应式接口
java·spring
小bo波1 天前
使用Thread子类创建线程 VS 使用Runnable接口创建线程的区别
java·多线程·thread·并发编程·runnable
SamDeepThinking1 天前
高并发场景下,CompletableFuture与ForkJoinPool该如何取舍?
java·后端·面试
张不才1 天前
CPU 100% 了怎么办?Java 性能排障的标准化操作
java·后端
shepherd1111 天前
吞吐量提升 10 倍:高并发大批量数据处理任务的架构演进与性能调优
java·后端·架构
plainGeekDev1 天前
单例模式 → object 声明
android·java·kotlin
用户298698530141 天前
Java 实现 Word 文档文本与图片提取的方法
java·后端
SimonKing2 天前
铁子,IntelliJ IDEA 2026.1.3来了,升不升?
java·后端·程序员
咖啡八杯2 天前
GoF设计模式——策略模式
java·后端·spring·设计模式