您当前的位置: 首页 >  ide

$驽马十驾$

暂无认证

  • 2浏览

    0关注

    31博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

idea热部署 之 devtools

$驽马十驾$ 发布时间:2022-09-30 14:20:54 ,浏览量:2

idea热部署 之 devtools
  • 1. 添加 jar 包
  • 2. 添加插件
  • 3. 开启自动编译
  • 4. 开启热注册
  • 5. 重启 idea

1. 添加 jar 包
		
            org.springframework.boot
            spring-boot-devtools
            runtime
            true
        
2. 添加插件

如果是聚合项目,此插件可以添加到父工程的 pom.xml 文件中


  
    
      org.springframework.boot
      spring-boot-maven-plugin
      
        true
        true
      
    
  

3. 开启自动编译

打开 Settings 配置: 在这里插入图片描述

4. 开启热注册

Ctrl+Shift+Alt+/,然后点击:Registry 在这里插入图片描述 下面两项打上√ 在这里插入图片描述

5. 重启 idea
关注
打赏
1663377658
查看更多评论
立即登录/注册

微信扫码登录

0.0349s