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:
-
develop
with the current 2.X baseline. -
release/1.X
with the previous 1.X release. -
feature/foo
created fromdevelop
with 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/foo
and force push. -
Check-out the target base branch
release/1.X
. -
Cherry-pick the commit(s) from
feature/foo
but DON’T force push: the commit becomes active. -
Create a new branch
feature/foo
and select "Overwrite existing branch". -
On a new modal window "Checkout HEAD" select "Drop Local Commits".
-
Push the branch.