@GetMapping("/goods/{category}")
fun goodsView(goodsDTO: GoodsDTO, modal: ModelMap,
@PageableDefault(size = 30) pageable: Pageable,
@RequestParam(required = false) page: String?): String
PageableDefault
: 페이징 기본 설정 값 ( page, size)
val goodsList = this.goodsRepository.findAll(pageable)
pageable
이용해서 페이징 처리 할 수 있음
goodsList
:Page<Goods>