Expand your #Java expertise with this new book bundle from @humble and Apress. Explore resources covering development, frameworks, performance, and more, all in one collection. Supports @nokidhungry#Programming#JavaDev#HumbleBundle
🔗
🚀 Spring Boot: Spring Data JPA has a built-in support for pagination with Pageable.
✅You should use pagination in your repositories instead of fetching all.
#SpringBoot#JavaDev
Spring Boot makes you feel like you’re doing a lot less, but actually building a lot more.
That’s framework design done right.
#JavaDev#SpringBoot#ayshriv
🚀 Java: A very interesting library by named Sift, replaces the cryptic, string-based approach of the Java Regex engine with a fluent API.
#Java#JavaDev
🧵A link to the GitHub project to follow
Expand your #Java expertise with this new book bundle from @humble and Apress. Explore resources covering development, frameworks, performance, and more, all in one collection. Supports @nokidhungry#Programming#JavaDev#HumbleBundle
🔗
🚀 Spring Boot: To make Jackson create your objects from JSON in an explicit, and predictable way, you can use @JsonCreator.
🟢 Each parameter is explicitly bound
#SpringBoot#JavaDev
🚀 Spring Boot: It has built-in support for pagination with Pageable.
✅You should use pagination in your repositories instead of fetching all.
#SpringBoot#JavaDev
🚀Java: Starting from Java 14, you can use records to create short, immutable, data-carrying objects.
✅ They are shorter than ordinary POJOs
✅ They have built-in equals(), hashCode(), toString()
✅ They are immutable by default
#JavaDev#Records
Spring Batch makes ETL tasks easy to manage.
Just define jobs, steps, and chunks — and it handles everything else.
It also manages transactions, retries, and job status by default.
#DevLife#JavaDev#SpringBatch#ayshriv
💡Java: Prefer delegation over inheritance; an "is-a" relationship ties you to the superclass forever
✅ A subclass inherits the parent's entire API; a change upstream can break your code
✅ With delegation, you hold a helper object and forward calls; easy to mock
#JavaDev 🧵
🚀 Spring Boot: If your code uses RestTemplate, you can implement tests by mocking external calls with MockRestServiceServer.
✅ MockRestServiceServer works by intercepting HTTP requests
#SpringBoot#JavaDev
💡Spring Boot tip: If you need to implement integrations tests for Spring MVC controllers, and mock everything else, use @WebMvcTest to load only MVC-related beans.
#SpringBoot#JavaDev