NewDealJava / back

0 stars 0 forks source link

문의 게시판 전체리스트 가져오기 #24

Closed yoonicorn9227 closed 2 months ago

yoonicorn9227 commented 2 months ago

문의 게시판 전체 가져오기 ICotroller → InquiryService → InquiryServiceImpl → InquiryMapper → inquiryMapper.xml InquiryDto 설정완료

@GetMapping("/index") public String index(Model model, @RequestParam (defaultValue = "1") int page) {

    ArrayList<InquiryDto> list = inquiryService.iSelectAll(page);

    //▼model저장 후 전송
    model.addAttribute("list",list);

    return "model"; // 수정
}//index