Spring Boot Many-Page Pagination using Thymeleaf and Bootstrap

preview_player
Показать описание
In this video, I'd love to share with you a simple solution to display pagination that contains many pages in a Spring Boot application using Thymeleaf and Bootstrap.
If a listing page, if the total pages greater than 10, then it will show an ellipsis at the center indicating there are more pages between the first page and the last one; also showing an ellipsis on the left indicating there are more pages before the current page; and showing an ellipsis on the right indicating there are more pages after the current page.
I hope you will find this video as a good reference for implementing many-page pagination in Spring Boot with Thymeleaf and Bootstrap.

#springboot #springmvc #java #springframework
Рекомендации по теме
Комментарии
Автор

Impressed, amazing.
Would love to look at the corresponding service and controller method's in detail

furkatlapasov
Автор

Chào anh, lúc trước e có theo dõi kênh của anh 1 thời gian sau đó ko học spring boot nữa nên k có xem vid tiếp. Em mới học lại mà tầng suất a ra video dày đặt quá em học ko kịp với tầng suất ra vid của anh luôn :))) Các bài giảng của anh khá hay, tư duy database e cũng thấy khác với em, đáng học hỏi lắm ạ. Em cảm ơn anh, hy vọng anh ra nhiều video về Spring nữa!

asad-mplr
Автор

This is it, thanks bro Nam!
I have to spend 20 minutes to add 120 products to test kakaka.

ktn
Автор

This is one of the best solutions that I have seen. But my application has more than 3000 records, and per page I can show only 10. It's getting tricky on how to handle that many pages...

AmbreenDarjat
Автор

I think u left = sign… if u click 18 it will not show correctly.

Under totalPages > 10 conditions, you should check currentPages <= 5 || currentPage >= totalPages - 4

Am I right?

triplek
Автор

Friend, thank you very much for the explanation but I would like to learn more, what is your course called on udemy?

chapumix
Автор

where is code pls provide code link in comment section

vijaykumar-wujc
Автор

so what about when i refresh the webpage? would it go back to the first page? do i need to use local storage to maintain whatever i am at?

mrwhammer
Автор

Sir can you explain me where you getting "pageUrlPrefix" and "pageUrlPostfix"? Which urls represented in this case?

elkhanismayilov
Автор

Is this project in Udemy, and witch course ?

antonalmishev
Автор

hii i want to ask you i have made a springboot project in our system and i want to deploy this project on external tomcat server of another system which give me error of 404 ? but when i deploy in our external server it runs the project.what should i do?

apurvbhardwaj
Автор

Having bugs when my total page is 40 and page 36 doesnt show the pagination only show previous and next bar, . same goes to when your total page is 20 and error occured at page 16

junwei
Автор

Hello sir, how to check email already exists from database please do one video on that topic..

nikhilbendre
Автор

zrobi ci taki błąd i człowiek szuka godzinami czy ma dobrze przepisane a facet po prostu zrobił błąd. Po co się chwalić błędnym kodem na filmie

adamfijak
welcome to shbcf.ru