问题:
在maven中加入依赖后发现热启动还是没办法
<!--热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
解决方法:
如果是idea,需要改以下两个地方:
1、勾上自动编译或者手动重新编译
File > Settings > Compiler-Build Project automaticall
2、ctrl + shift + alt + / > Registry > 勾选Compiler autoMake allow when app running