@RequestMapping(value="update/{id}", method = RequestMethod.POST, produces = APPLICATION_JSON)
public ApiResponse update(@PathVariable("id") Long id, @RequestBody RoomUpdateRequestDto requestDto) {
pms_RoomService.update(id, requestDto);
return ok();
}
path 파라미터에 /{id}를 줘야하는데 빼먹고 안줘서 발생한 오류
'basic > Java' 카테고리의 다른 글
@RunWith, @Before import안될 때 // assertThat (0) | 2021.06.10 |
---|---|
[Error] could not read document can not deserialize instance of java.util.ArrayList (0) | 2021.05.11 |
@Transactional readOnly => cannot read simbol (0) | 2021.05.03 |
람다식을 이용한 forEach문 (0) | 2021.05.02 |
Sample Controller (0) | 2021.05.01 |