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
반응형
'개발 > Spring' 카테고리의 다른 글
[SpringBoot] WAR - mvn package시 Error assembling WAR: webxml attribute is required 에러 해결방안 (0) | 2023.01.19 |
---|---|
SpringSession을 이용한 로그인시 InvalidClassException 발생 (0) | 2022.05.09 |
SpringBoot Session JDBC 사용시 테이블명 변경하는 방법 (0) | 2022.04.18 |
[STS] STS를 이용한 Springboot Application 쉽게 만들기 (0) | 2022.04.05 |
[SpringBatch] 구동시 'batch_job_instance' doesn't exist 에러발생 (0) | 2021.08.03 |