Spring Boot with Angular - Full Application - Part 8 - Adding pagination to the list endpoint

preview_player
Показать описание
In this tutorial series we take a look on how to create a full web application using Spring Boot for the backend and Angular for the frontend. We will take a look at all important subjects that you might have to come in contact in a real-world application (e.g. connecting to a database, creating and updating entities, searching, and many more).

If you have some topics that you would like to see implemented feel free to leave a comment or drop me an e-mail.

This specific video shows us how we can add paged requests and limit the data that is sent from the backend to the frontend. We extend the list endpoint to be able to define page and size on it and forward it all the way to the repository.

Source code:

Commit for this video:

All important links that you might need can be found here:

Рекомендации по теме
Комментарии
Автор

Hi Lilium, I see in the service class, we are passing PageRequest to the repository. But in the repository impl class DistributedRepositoryImpl, I see Specification class as input parameter : public List<ENTITY> findAll(final Specification<ENTITY> specification) {..}. Is it issue with code in github ? Appreciate your clearification. I am not sure where is the repository class dealing with PageRequest.

JS-brex
Автор

Please how did u use this, i didn't found anything in your code
private void notifyFrontend() {
final String entityTopic = getEntityTopic();
if (entityTopic == null) {
LOG.error("Failed to get entity topic");
return;
}


}

boh
Автор

the websocket is not clear please any help

boh
Автор

The video has poor quality, if you can change it please

temrimoose
welcome to shbcf.ru