Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- LPOS
- UnsupportedOperationException
- 플루터
- RedirectService
- Loki 로그
- Ingress Controller Fake
- intellij
- ㅉ때
- reids
- R2DBC Paging
- fake jwt
- Armeria
- pinpoint
- 았
- OIDC
- 노드간 통신
- 오블완
- 논블록킹 성능
- save/update
- formik
- jsonMarshaller
- 핀포인트
- 월급루팡 일지
- 애자일 싫타
- hbase 저장공간 설정
- 7879
- pinpoint 2.5.3
- nGinder
- 티스토리챌린지
- 개발 어렵당.ㅠ
Archives
- Today
- Total
대머리개발자
R2DBC Page 처리.. 본문
728x90
public Flux<User> searchUserList(int offset, int limit){
// Example<User> example = Example.of(User.builder().id(2000008269).build());
// return userRepository.findAll(example, Sort.by(Sort.Direction.DESC, "createDate"));
return userRepository.findAllPaging(offset, limit);
}
일단 로직에서 처리가 되지 않는다.
example : 조건절 셋팅하는것 같고.
sort : 정렬이구.....
고민하지 말자... 프론트도 해야 한다. 빠르게 처 나가자!!
public interface UserRepository extends R2dbcRepository<User, Long> {
Mono<User> findByEmail(String email);
@Query("select * from user limit :#{[0]} ,:#{[1]}")
Flux<User> findAllPaging(int offset, int limit);
}
마리아DB
728x90
'개발이야기 > 자봐' 카테고리의 다른 글
Oauth2 Provider(Naver/Kakao/Google) (0) | 2023.03.28 |
---|---|
JPA 더티체킹 (0) | 2023.03.22 |
Armeria 프레임워크 - 리다이렉트 (1) | 2023.03.09 |
boot azure-key-vault (0) | 2023.02.21 |
r2dbc Mysql and Maria (1) | 2023.02.19 |