IllegalStateException1 java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test 테스트 에러 스프링부트로 스프링 MVC 예제를 복습하는 과정에서 에러를 만났다. java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test 갑자기...? 요즘 책을 보면서 다시 복습하는 중이긴 한대, 스프링부트 업데이트 때문인지 가끔 안되는 코드가 보이더라. 그래서 이것도 그런건가? 싶었는데 이게 뭐지 하면서 위에 나온 ContextConfiguration도 넣어보고 SpringBootTest 도 추가해보고 별짓을 해봤지만 결국엔 실패... 에러의 원인은 스프링부트 설정클래스를 찾지 못하기 .. 2020. 5. 25. 이전 1 다음