spring boot devtools热部署

问题1: Springloaded 在springboot2的maven的pom.xml 无法找到

解决方法:在idea通过View->Tool Windows->Maven Projects  运行一下maven命令 mvn install

问题2:spring boot spring-boot-devtools 在intellij idea 热部署

引入jar包

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>

解决方法:idea的File->Settings->build,execution,deployment->Compiler 选中Build project automatically,然后File->Settings-->keymap 在搜索栏中输入maintenance 查看快捷键 

       勾选上:ompiler.automake.allow.when.app.running

             1、ctl + shift + option + / (苹果) ctrl+alt+shift+/(window)

             2、registry

             3、compiler.automake.allow.when.app.running 勾选

参考地址:https://www.cnblogs.com/shenlanzhizun/p/8027238.html 

原文地址:https://www.cnblogs.com/yldIndex/p/8463971.html