Career/Spring Boot

[Spring Boot] 스프링 부트 ionShutdownHook 에러 해결

AlexHouse 2022. 9. 9. 12:03
728x90

 

 

 

 


간혹 스프링 부트 하다가 보면 에러가 생기기 마련..

 


 

원인

 

pom.xml<Spring-boot-starter-web> 

 

이게 없다는 것을 의미한다.

 

그래서 ionShutdownHook 서버를 키자마자 바로 꺼지는 

 

에러가 발생한것이다.

 

아래를 추가해주면 된다.

 

<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    <version>2.7.3</version>
</dependency>

 

🌟🌟🌟🌟

그리고 버전에 맞게 설치해야 되는것 명심하자

 

 

 

난 2.7.3 버전이라

 

저걸 선택했다.

 

그럼 오류 해결

 

 

그리고

 

여기 들어가면 메이븐 가져올 수 있다.

 

https://mvnrepository.com/artifact/org.springframework/spring-web/4.3.11.RELEASE

 

 

 


 

 

To be continue..

728x90