This is a tutorial on how to enable Dev Tools project on IntelliJ 2021.2 and observe the changes in code without having to restart the Tomcat server.
In order to make it work, you need to:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope><!-- -->
<optional>true</optional>
</dependency>
In IntelliJ IDEA: go to settings(ctrl + alt + s) -> Build, Execution, Deployment -> Compiler, check "Build project automatically"
Enable option "Allow auto-make to start even if developed application is currently running" in Settings -> Advanced Settings under "Compiler"
You can now restart your intelliJ IDE and start your application.