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,希望能帮到你。

相关推荐
yaoxin52112321 小时前
384. Java IO API - Java 文件复制工具:Copy 示例完整解析
java·开发语言·python
NotFound4861 天前
实战指南如何实现Java Web 拦截机制:Filter 与 Interceptor 深度分享
java·开发语言·前端
一 乐1 天前
医院挂号|基于springboot + vue医院挂号管理系统(源码+数据库+文档)
java·数据库·vue.js·spring boot·论文·毕设·医院挂号管理系统
鱼鳞_1 天前
Java学习笔记_Day29(异常)
java·笔记·学习
烟锁池塘柳01 天前
一文讲透 C++ / Java 中方法重载(Overload)与方法重写(Override)在调用时机等方面的区别
java·c++·面向对象
一叶飘零_sweeeet1 天前
深入拆解 Fork/Join 框架:核心原理、分治模型与参数调优实战
java·并发编程
云烟成雨TD1 天前
Spring AI Alibaba 1.x 系列【23】短期记忆
java·人工智能·spring
摇滚侠1 天前
帮我整理一份 IDEA 开发中常用快捷键
java·ide·intellij-idea
疯狂成瘾者1 天前
YAML配置介绍
java
cccccc语言我来了1 天前
C++轻量级消息队列服务器
java·服务器·c++