pom添加
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>2.1.2.RELEASE</version>
<optional>true</optional>
</dependency>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
idea设置
File | Settings | Build, Execution, Deployment | Compiler

ctrl + shift + alt + / register
勾选 compiler.automake.allow.when.app.running
本文介绍了如何在Spring Boot项目中添加devtools依赖以实现热部署,并配置Maven插件以优化开发体验。同时,指导了在IntelliJ IDEA中进行设置,启用自动编译功能,提升开发效率。
312

被折叠的 条评论
为什么被折叠?



