🔻Extracurricular Activity/UMC

[UMC 3기] server 8주차-2

_니지 2022. 11. 17. 11:42

❗Board 페이징 처리

https://radiant515.tistory.com/281

 

[Spring] JPA와 Pageable

페이징 처리를 하기 위해 JPA와 Pagable을 이용해보았다 -BoardRepository -BoardService boardService에서 전체 리스트를 불러오는 함수에 파라미터로 Pageable을 넣어주고 boardList를 boardRepository에서 findAll함수에

radiant515.tistory.com

 

✏️BoardController

 

✏️BoardRepository

 

✏️BoardService

전체 리스트
제목에 키워드 포함한 리스트
내용에 키워드 포함한 리스트
닉네임이 일치한 게시글 리스트

 

 

 

❗User 페이징 처리

✏️UserController

 

✏️UserRepository

 

✏️UserService

유저 전체 리스트

 

 

❗JWT 추가하기

✏️UserController signUp메소드

 

✏️UserService  createUser 메소드

 

 

❗Transaction

✏️User

 

 

✏️Board

 

 

 

728x90
반응형