只需要在application.properties中加入

spring.output.ansi.enabled=ALWAYS

即可

05-21 11:34