IntelliJ IDEA怎么热启动springboot项目

我们在利用IntelliJ IDEA开辟springboot项目时,每次点窜都需要重启IntelliJ IDEA,很是的麻烦,影响开辟的效率,那么IntelliJ IDEA怎么热摆设springboot项目呢,下面本文就介绍一下。

东西/原料

  • IntelliJ IDEA,springboot

方式/步调

  1. 1

    起首,需要在springboot项目标pom.xml文件中引入相关的依靠,maven依靠为:

    <dependency>    

         <groupId>org.springframework.boot</groupId>    

         <artifactId>spring-boot-devtools</artifactId>    

         <optional>true</optional>

    </dependency>


    和插件撑持:

    <build>    

        <plugins>        

             <plugin>            

                   <groupId>org.springframework.boot</groupId>            

                   <artifactId>spring-boot-maven-plugin</artifactId>            

                   <configuration>                

                        <fork>true</fork>            

                   </configuration>        

             </plugin>    

        </plugins>

    </build>

    如图所示。

  2. 2

    然后点击IntelliJ IDEA左上角的“file”,如图所示。

  3. 3

    然后选择下拉菜单中的“settings...”,进入idea的系统功能设置,如图所示。

  4. 4

    进入IntelliJ IDEA的settings功能之后,选择左侧菜单的“Build,Execution,Deployment”,如图所示。

  5. 5

    然后选择此中的“Compiler”,然后把右面的“Build project automatically”前面的复选框勾选,如图所示。

  6. 6

    然后利用快捷键“Ctrl+Shift+A”,搜刮“Registry”,如图所示。

  7. 7

    然后把如图所示的key进行勾选就可以了,如图所示。

  8. 8

    然后需要重启IntelliJ IDEA,不然可能不生效,以上就是IntelliJ IDEA怎么热启动springboot项目标方式介绍,但愿可以帮到大师。

  • 发表于 2019-07-30 00:48
  • 阅读 ( 814 )
  • 分类:其他类型

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
admin
admin

0 篇文章

作家榜 »

  1. xiaonan123 189 文章
  2. 汤依妹儿 97 文章
  3. luogf229 46 文章
  4. jy02406749 45 文章
  5. 小凡 34 文章
  6. Daisy萌 32 文章
  7. 我的QQ3117863681 24 文章
  8. 华志健 23 文章

联系我们:uytrv@hotmail.com 问答工具