@GetMapping : 조회 @PostMapping : 추가(insert) @PutMapping : 수정(update) @DeleteMapping : 삭제 JPA를 통해 지정할 수 있는 규칙을 통해 검색 구현 JPA Query Methods :: Spring Data JPA As of Spring Data JPA release 1.4, we support the usage of restricted SpEL template expressions in manually defined queries that are defined with @Query. Upon the query being run, these expressions are evaluated against a predefined set of var..
Handling Form Submission Form Id: Message: post 요청으로 form의 내용을 보낼 주소 object로 지정하면 controller에서 지정했던 greeting 키 사용 가능 에서 "*{id}" 하게 되면 greeting.id 값이 들어옴 글 수정하기 list.html Mark Otto 홍길동 title을 누르면 board의 id 값을 함께 보낸다. (Controlelr에서 RequestParam 추가) BoardController @GetMapping("/form") public String form(Model model, @RequestParam(required = false) Long id){ if(id == null){ model.addAttribute("boar..