BoardController
페이지 정보
본문
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);
}
}
- 이전글● 컨트롤러와 목록 화면 처리 24.06.18
- 다음글board/list.html ( 목록 출력 ) 24.06.18
댓글목록
등록된 댓글이 없습니다.