Idea runs the springboot project console and outputs the highlighted logs

Time:2021-8-6

problem

Sometimes idea runs the springboot project and the consoleConsoleThe output log color is white

solve

Configure startup classapplicationRelevant parameters of, add:-Dspring.output.ansi.enabled=ALWAYS
Idea runs the springboot project console and outputs the highlighted logs