Spring 테스트코드 404에러
에러발생 테스트코드 404에러 간단한 테스트 코드를 작성하고 테스트코드를 실행하였는데 아래와 같은 에러가 났다. 404에러는 테스트 코드의 문제보다는 url쪽 에러라고 해서 먼저 맵핑이 잘안되었나하고 확인했는데 문제 가없었다. @Test ```public void hello가_리턴된다() throws Exception{ String hello ="hello"; mvc.perform(get("/test")) .andExpect(status().isOk()) .andExpect(content().string(hello)); } } @GetMapping("/test") public String hello(){ return "hello"; 원인 원인은 ..테스트코드나 맵핑의 문제가아닌 디렉토리주소가 잘못되었다...