-
在pom.xml中添加
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency> -
File -> Settings -> Build,Execution,Deployment -> Compiler
勾选Build project automatically -
按ctrl+alt+shift+/ 选择Registry
勾选compiler.automake.allow.when.app.running
然后关闭Close
转载于:https://my.oschina.net/u/3777103/blog/3040312