Configure the color log output of the eclipse console
Install the ansi console plug-in, please Baidu for the step of installing the plug-in.
Open in the springboot configuration file
spring:
#Eclipse-console-color彩色打印数据
output:
ansi:
enabled: ALWAYS
The result is as follows: