IntelliJ Idea
Debugging
Setup Spring Boot DevTools
04-01-2023, source: YouTube
-
Include the dependency in
pom.xml:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> -
Navigate to Settings → Build, Execution, Deployment → Compiler:
-
Enable Build project automatically Navigate to Settings → Advanced Settings:
-
Enable Allow auto-make to start even if the developed application is currently running.
Change a base branch
Assume these branches:
-
developwith the current 2.X baseline. -
release/1.Xwith the previous 1.X release. -
feature/foocreated fromdevelopwith some commits.
The goal is to change a base branch without lengthy rebasing. Assume huge changes between develop and release/1.X.
Steps
-
Squash all commits in
feature/fooand force push. -
Check-out the target base branch
release/1.X. -
Cherry-pick the commit(s) from
feature/foobut DON’T force push: the commit becomes active. -
Create a new branch
feature/fooand select "Overwrite existing branch".
-
On a new modal window "Checkout HEAD" select "Drop Local Commits".
-
Push the branch.