–
12345
@Repositorypublic interface UserRepository extends PagingAndSortingRepository<User, Long> { Page<User> findAll(Pageable pageable);}
Page<User> users = userRepository.findAll(pageable);List<UserProfile> result = new ArrayList<>();for (User user : users) { result.add(new UserProfile(user));}
Update your browser to view this website correctly. Update my browser now
×