Note/Error Case ❎2 Rest Docs_SnippetException: The following parts of the payload were not documented 오류 내용 org.springframework.restdocs.snippet.SnippetException: The following parts of the payload were not documented: { "data" : [ { "memberId" : 1, "email" : "dodo03@gmail.com", "name" : "dodo3", "phone" : "010-3333-3333", "memberStatus" : "활동중", "stamp" : 0 }, { "memberId" : 2, "email" : "dodo04@gmail.com", "name" : "dodo4", "phone" : "010-4444-4444", "memberStatus" : "활동중", "stamp" : 0 } ], "p.. 2022. 9. 15. Rest Docs_java.lang.IllegalArgumentException: urlTemplate not found. If you are using MockMvc did you use RestDocumentationRequestBuilders to build the request? 오류 내용 java.lang.IllegalArgumentException: urlTemplate not found. If you are using MockMvc did you use RestDocumentationRequestBuilders to build the request? Rest Docs를 만들 때 pathParameter를 사용하는 요청에서는 mockMvcRequestBuilders 대신 restDocumentionRequestBuilders를 사용하라고 한다. 오류 발생 위치 //asis ResultActions actions = mockMvc.perform( patch("/v11/members/{member-id}", memberId) .accept(MediaType.APPLICATION.. 2022. 9. 14. 이전 1 다음