热部署配置
- 在pom.xml中添加依赖:
<!-- 热部署工具 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>
- idea配置设置:
允许运行时重新自动构建
2021版idea在registry中已经去掉了compiler.automake.allow.when.app.running配置项