개발/Spring
[SpringBoot] No command found for '--spring.output.ansi.enabled=always' 에러메세지 표시 후 구동실패
정리하는개발자
2024. 1. 19. 17:20
728x90
반응형
org.springframework.shell.CommandNotFound: No command found for '--spring.output.ansi.enabled=always' 메세지 표시 후 SpringBoot Application 구동실패

[2024-01-18T10:31:11.133+09:00 WARN --- [ restartedMain] org.jline : Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
[2024-01-18T10:31:11.367+09:00 INFO --- [ restartedMain] o.s.b.a.e.web.EndpointLinksResolver : Exposing 13 endpoint(s) beneath base path '/actuator'
[2024-01-18T10:31:11.443+09:00 INFO --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8080 (http) with context path ''
[2024-01-18T10:31:11.462+09:00 INFO --- [ restartedMain] .g.w.s.r.SpringbootRunnerApplicationMain : Started SpringbootRunnerApplicationMain in 5.278 seconds (process running for 6.058)
No command found for '--spring.output.ansi.enabled=always'
[2024-01-18T10:31:11.472+09:00 INFO --- [ restartedMain] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-01-18T10:31:11.505+09:00 ERROR --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
org.springframework.shell.CommandNotFound: No command found for '--spring.output.ansi.enabled=always'
at org.springframework.shell.Shell.evaluate(Shell.java:207) ~[spring-shell-core-3.2.0.jar:3.2.0]
at org.springframework.shell.Shell.run(Shell.java:159) ~[spring-shell-core-3.2.0.jar:3.2.0]
원인
spring-shell 기능의 입력/출력과 로그 색상표시 특수문자열 출력기능의 충돌로 파악됨.
해결
1. spring-shell 기능을 사용하지 않거나
2. spring.boot.output.ansi.enabled 옵션을 never로 설정해 로그 색상기능을 사용하지 않으면 해결된다.

728x90
반응형