RestDocs - ClassCastException
@Test void 게시글_저장() throws Exception { mockMvc.perform(RestDocumentationRequestBuilders.post("/api/v1/posts") .contentType(MediaType.APPLICATION_JSON) .content(objectMapper.writeValueAsString(postCreateDto))) .andExpect(status().isOk()) .andDo(print()) .andDo(document("post-save", requestFields( fieldWithPath("title").description("게시글 제목"), fieldWithPath("content").description("게시글 내용"), fieldWi..
2022.12.16