springboot有支持热部署的依赖(及改动代码不需要重新启动项目)
pom.xml中加入如下配置
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
但是 项目代码进行更改后并没有重新编译 与是发现问题是idea需要配置才能自动编译
需要修改的地方记一下
选择 file====> settings
搜索 Compiler 然后 勾选Build......
然后使用快捷键 shift+ctrl+alt+/ 点击Registry.....
最后勾选下图红框中内容就ok了