
웹 계층 개발(상품)
·
BackEnd/실전! 스프링 부트와 JPA 활용1
상품 등록 상품 등록 폼 @Getter @Setter public class BookForm { private Long id; private String name; private int price; private int stockQuantity; private String author; private String isbn; } 상품 등록 컨트롤러 @Controller @RequiredArgsConstructor public class ItemController { private final ItemService itemService; //상품등록 화면 띄우기 @GetMapping("/items/new") public String createForm(Model model){ model.addAttribute..