Learn how to use Guava’s MapMaker class to create maps with weak references. >>>
Yearly Archives: 2020
Conditional Flow in Spring Batch
Learn how to create Spring Batch jobs with conditional flow. >>>
Introduction to Guava Throwables
A quick and practical introduction to Guava Throwables. >>>
Helpful NullPointerExceptions in Java
Learn about helpful NullPointerExceptions in Java 14. >>>
Intro to Coroutines with Quasar
Learn to implement coroutines in Java using Quasar. >>>
Add BigDecimals using the Stream API
While the streams API provides a useful way to calculate the sum of some numeric types, BigDecimal is not support. Here we learn how to calculate sums with reduce. >>>
Returning Plain HTML From a Spring MVC Controller
Learn how to return HTML from a Spring MVC controller. >>>
Add CSS and JS to Thymeleaf
Learn how to apply CSS styling and external JavaScript functionality to our Thymeleaf pages. >>>
Difference Between BeanFactory and ApplicationContext
Learn about the significant differences between Spring’s ApplicationContext and BeanFactory with practical examples >>>
How to Determine Day of Week by Passing Specific Date in Java?
A quick and practical guide to determining the day of the week in Java. >>>
Java Weekly, Issue 327
A preview of Kubernetes support coming to Spring Boot 2.3, and a handful of Google Cloud tools to help you build and deploy Spring Boot microservices. >>>
Using JWT with Spring Security OAuth (legacy stack)
A guide to using JSON Web Tokens with both symmetric and asymmetric signing in Spring Security OAuth. >>>
Comparing Long Values in Java
Learn how to compare long values in Java. >>>
Testing Multi-Threaded Code in Java
A comprehensive guide to testing multithreaded code in Java. >>>
The Clear-Site-Data Header in Spring Security
Learn how to use Spring Security’s with ClearSiteDataHeaderWriter to add the HTTP Clear-Site-Data response header >>>
Fixing “constant string too long” Build Error
Learn to fix the “constant string too long” build error in Java. >>>
Prevent ApplicationRunner or CommandLineRunner Beans From Executing During Junit Testing
Learn how to prevent ApplicationRunner or CommandLineRunner beans from executing during JUnit tests. >>>
Java ArrayList vs LinkedList
Learn the difference between ArrayList and LinkedList in Java >>>
Quick Guide to EntityManager#getReference()
Learn how Hibernate’s EntityManager#getReference method works in various use cases. >>>
Regular Expressions \s and \s+ in Java
Learn about the difference between the two regular expressions through examples >>>