I am running a spring boot application inside IntelliJ IDEA and noticed a difference if I run it via the run tab (run menu) and via manual command from the terminal tab.
If I run it through a maven run target (play button), I do not see any colors inside the 'run' tab. If I run it via 'mvn spring-boot:run from the 'terminal' tab I see the pretty color highlights. The maven run configuration also runs the same command, spring-boot:run.
Application started from the play button/run configuration (run tab): Application started from the terminal tab via mvn spring-boot:run (terminal tab):
Change the UI theme In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Appearance & Behavior | Appearance. Select the UI theme from the Theme list: IntelliJ Light: Traditional light theme for IntelliJ-based IDEs.
Run Toolbar Click to open the Dump view where you can view all threads of the current process. Click this button to terminate the current process gracefully using in-process internal mechanisms. Click this button to terminate the current process externally by means of the standard shutdown script.
Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme. Select the setting pages related to consoles: Console Colors. Console Font.
Inside build.gradle, add the following block to get colorized log output when running your Spring Boot app inside IntelliJ IDEA via gradle bootRun
.
bootRun {
jvmArgs = ["-Dspring.output.ansi.enabled=ALWAYS"]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With