BoardController
페이지 정보
작성자 관리자 작성일 24-06-18 13:42 조회 287 댓글 0본문
package web.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import web.dto.BoardDTO;
import web.dto.PageRequestDTO;
import web.dto.PageResponseDTO;
import web.service.BoardService;
@Controller
@Log4j2
@RequestMapping("/board/")
@RequiredArgsConstructor
public class BoardController {
private final BoardService boardService;
@GetMapping("list")
public void getList(Model model, PageRequestDTO pageRequestDTO) {
log.info("list ..............");
PageResponseDTO<BoardDTO> responseDTO = boardService.list(pageRequestDTO);
model.addAttribute("result", responseDTO);
}
}
댓글목록 0
등록된 댓글이 없습니다.