SpringBoot无法热部署

问题:
在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

posted @ 2020-03-16 13:33  hofe  阅读(193)  评论(0)    收藏  举报