- Add
spring-boot-devtools
topom.xml
<dependencies>
...
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>2.6.5</version>
</dependency>
...
</dependencies>
-
Auto build setting
- VSCode:
Settings
->Java
->Autobuild: Enabled
- Idea:
Settings
-->Build-Execution-Deployment
-->Compiler
->Build project automatically
- VSCode:
Idea:
Help
-->Find Action ...
->Registry ...
-->compiler.automake.allow.when.app.running