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

相关推荐
男孩李17 分钟前
浅谈Linux的last命令
java·linux·服务器
豆瓣鸡19 分钟前
算法日记 - Day5
java·算法
掉鱼的猫21 分钟前
Solon 的 10 种 HTTP 服务器:改一行依赖,换一个引擎
java·serverless
学者猫头鹰28 分钟前
对象存储:MinIO / 阿里云OSS
java
程序员-Benothing1 小时前
Java集合:List实现类深度对比
java·开发语言·后端·面试·list
wyjcxyyy1 小时前
若依框架漏洞总结
java·ctf
水无痕simon1 小时前
1 银行业务之个人存款业务
java
long3161 小时前
PostgreSQL 学习资料 · 入门 / 练习 / 精通 / 扩展
java·数据结构·数据库·spring boot·sql·postgresql·数据库开发
北冥you鱼1 小时前
Go语言数组越界处理机制详解:从编译时检查到运行时panic
java·python·golang
zzzll11111 小时前
RAG(检索增强生成)技术详解:从原理到实践
java·人工智能