http://hwannnn.blogspot.com/2018/07/putdeletemapping-body.html
put, delete 요청은
톰캣이 파싱해주지 않는다
따라서
//스프링부트
@DeleteMapping("todo/{no}")
public List<TodoVO> todo(@PathVariable("no") int no) {
service.deleteTodo(no);
return service.selectTodos();
}
//뷰
axios
.delete(`http://localhost:8282/TodoAppBackend/todo/${no}`)
.then((response) => {})
.catch((error) => {});