IDEA开启热加载
然後 Ctrl+Shift+Ait+/
pom.xml里添加
<build> <plugins> <!-- 配置插件,让热部署依赖spring-boot-devtools生效 --> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <!-- 设置为true,让热部署devtools生效 --> <fork>true</fork> <addResources>true</addResources> </configuration> </plugin> </plugins> </build>
你所拥抱的并不总是拥抱你