IDEA 功能备忘

devtools(热部署)

1 添加依赖(在需要热部署的module中)

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>

2 添加 maven 插件(在父工程里)

  <build>
    <plugins>
      <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <version>2.2.2.RELEASE</version>
        <configuration>
          <fork>true</fork>
          <addResources>true</addResources>
        </configuration>
      </plugin>
    </plugins>
  </build>

3 开启项目热部署
在这里插入图片描述
4 开启项目运行时热部署
在这里插入图片描述
IDEA 2021.2以下的版本,需要 Ctrl + shift + A ,搜索registry,并按下图配置
在这里插入图片描述

Services(Run Dashboard)

高版本的 idea 不用通过 xml 来开启 Run Dashboard
不过它改名字了,叫做Service
他会默认出现在 idea 窗口的底层
若里面没有默认存在你的项目,可以通过点击下图的加号添加 运行配置类型
在这里插入图片描述
没看到services的话,可以通过view -> Tool Windows -> Services 开启
在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值