Rest docs와 PathVariable 문제점 발견 문제점 java.lang.IllegalArgumentException: urlTemplate not found. If you are using MockMvc did you use RestDocumentationRequestBuilders to build the request? 문제가 발생한 코드 @DisplayName("상세 게시글 페이지에서 좋아요(△, ▽) 버튼을 누를 수 있다.") @WithAuthUser(email = "test123@naver.com", role = "ROLE_USER") @Test void putFavorite() throws Exception { final int boardNumber = 1; mockMvc.perform..
프로젝트
문제점 public class Board { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int boardNumber; private String title; private String content; /* fields getter builder constructor */ } 이렇게 되어 있었다.! CREATE TABLE board ( board_number integer GENERATED BY DEFAULT AS IDENTITY, comment_count integer, content varchar(255), created_at timestamp(6) NOT NULL, favorite_count integer, title varcha..