string boot finished with non-zero exit value 1 에러 해결방법
스프링부트에서 프로그래밍을 한다면 다양한 에러를 접할 수 있습니다. 톰켓을 사용을 하기에 기본적으로 8080포트를 사용을 합니다. 톰켓 포트도 다른 포트로 바꾸어서 사용을 할 수 있습니다. mysql 포트는 기본적으로 3306포트를 사용을 합니다. 데이터베이스와 연동을 할 때에 관련 포트는 기억을 해두어야 합니다. string boot finished with non-zero exit value 1 에러 해결방법에 대해 알아보도록 해요.
스트링부터에 bootRun을 할 때에 정상적으로 동작을 한다면 문제가 없겠지만 간혹 기존에 bootRun을 하였는데 또 bootRun을 할 때에 string boot finished with non-zero exit value 1 에러가 발생을 할 수도 있습니다. 되도록이면 새로 적용을 할 수 있는 아이콘을 클릭을 하여 결과를 확인을 할 수 있습니다. 그 아이콘이 원으로 돌아가는 것 처럼 화살표에 점이 찍힌 아이콘입니다.
> Task :StudyApplication.main()
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.2.RELEASE)
2020-01-09 00:41:36.357 INFO 5820 --- [ main] com.example.study.StudyApplication : Starting StudyApplication on DESKTOP-JOG8BCS with PID 5820 (E:\study\build\classes\java\main started by happy in E:\study)
2020-01-09 00:41:36.357 INFO 5820 --- [ main] com.example.study.StudyApplication : No active profile set, falling back to default profiles: default
2020-01-09 00:41:38.919 INFO 5820 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2020-01-09 00:41:38.935 INFO 5820 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2020-01-09 00:41:38.935 INFO 5820 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.29]
2020-01-09 00:41:39.076 INFO 5820 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2020-01-09 00:41:39.076 INFO 5820 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2610 ms
2020-01-09 00:41:39.326 INFO 5820 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-01-09 00:41:39.560 INFO 5820 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2020-01-09 00:41:39.576 INFO 5820 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-01-09 00:41:39.576 ERROR 5820 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 8080 was already in use.
Action:
Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.
2020-01-09 00:41:39.576 INFO 5820 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
> Task :StudyApplication.main() FAILED
Execution failed for task ':StudyApplication.main()'.
> Process 'command 'C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2019.3/jbr/bin/java.exe'' finished with non-zero exit value 1
bootRun에 관련된 에러이므로 현재 실행중인 포트를 중지를 하여야 합니다. 윈도우 명령프롬프트를 실행을 합니다.
netstat -ao |find /i "listening"
위와 같은 명령어를 입력을 하여 현재 사용을 하고 있는 8080포트에 대한 PID를 알아내야 합니다.
Taskkill /F /IM [PID]
8080포트에 대한 PID를 알아내었다면 위와 같은 명령어를 입력을 입력을 하여 실행을 하여야 합니다. PID는 해당 번호를 입력을 하여야 정상적으로 해당 포트에 대해 Kill이 됩니다. 스트링부트에 bootRun을 하면 정상적으로 동작을 합니다. string boot finished with non-zero exit value 1 에러 해결방법에 대해 알아보았습니다. 스트링부터 관련 에러에 대해 알아보신다면 유용한 정보가 되시길 바래요~!
'etc' 카테고리의 다른 글
Etcher 설치하는 방법 (0) | 2020.01.18 |
---|---|
Etcher 다운로드 받는 방법 (0) | 2020.01.17 |
cannot be accessed from outside package 에러 해결 방법 (1) | 2020.01.14 |
리눅스 putty 글자크기, 글꼴 바꾸는 방법 (0) | 2020.01.12 |
라즈베리파이 라즈비안 다운로드 방법 (0) | 2020.01.11 |