Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 SPRING SHELL 2 中,默认的错误命令和错误输出颜色为红色。是否可以为这些目的定义自定义颜色?
谢谢!
当命令的执行最终引发异常时会发生什么,由 处理ThrowableResultHandler,其实现用于RED显示文本。
ThrowableResultHandler
RED
如果您想自定义它,只需覆盖该结果处理程序。