https://gall.dcinside.com/mgallery/board/view/?id=taiko&no=162694&exception_mode=recommend&page=1
응..
select 는 mybatis , update , delete , insert 등은 하이버네이트 사용을 위해 하이버네이트 , 마이바티스 configuration 작업
태고의달인 공식사이트 https://taiko.namco-ch.net/taiko/songlist/namco.php#sgnavi 에서 데이터를 크롤링하여 데이터베이스에 적재작업 ,
@EnableJpaRepositories(basePackages = { "com.taiko.taikoproject.repository" })
@EntityScan(basePackages = { "com.taiko.taikoproject.entity" })
을 추가해준다.
Pageable result = PageRequest.of(Integer.parseInt(pageNum), 5, Sort.by("createdTime").descending());
return new ResponseEntity<>(taikoBoard.findBydeletedTimeNull(result), HttpStatus.OK);
Pageable 을 이용하여 페이지 계산 , 최근 날짜의 게시물을 가져오도록 정렬.