热部署配置
1.添加依赖
java
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
2.添加父工程pom
pom
<build>
<finalName>springcloud2022</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.6.0</version>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>
</plugins>
</build>
3.快捷键ctrl+alt+s打开setting,选择build*compiler,打钩
- Automatically show first error in editor
- Display notification on build completion
- Build project automatically
- Compile independent modules in parallel
4.快捷键ctrl+shift+alt+/打开registry
- compile.automake.allow.when.app.running
- actionSystem.assertFocusAccessFromEdt