개발환경

springboot restcontroller error type=Not Found, status=404

toogari 2023. 11. 22. 15:38

단순한 springboot restcontroller 는 생성하여 테스트하는데 

어이없게도 아래와 같은 오류가 발생함.

There was an unexpected error (type=Not Found, status=404).

 

이유를 알아보니 restcontroller package 가 springboot main 클래스의 package의 같거나 하위 package에 존재해야 한다.

별 생쑈를 했는데 이런 오류인 것은 처음 알게됨.