Learn how to unit test controller exceptions using Spring MockMvc. >>>
Yearly Archives: 2020
Spring Boot and Caffeine Cache
Learn how to use Caffeine cache with Spring Boot >>>
Why Not to Start a Thread in the Constructor?
Learn why you shouldn’t start a thread in a Java constructor >>>
Redirecting Logged-in Users with Spring Security
Learn several ways how to redirect logged-in users from the login page using Spring Security. >>>
Spring @RequestParam vs @PathVariable Annotations
Understand the differences between Spring’s @RequestParam and @PathVariable annotations. >>>
Liveness and Readiness Probes in Spring Boot
Learn how to integrate Spring with Kubernetes probes >>>
Java Weekly, Issue 338
This week is Spring-heavy, which is always cool 🙂 and, on top of that, a really solid writeup about building resilience. Good stuff. >>>
Java IOException “Too many open files”
Learn when and how to avoid the “Too many open files” exception in Java. >>>
The Difference between RxJava API and the Java Flow API
Learn about the Reactive Stream Specification and see a practical example of Flow API and RxJava implementations for a live video stream >>>
Test a Mock JNDI Datasource with Spring
Learn how to test a mock JNDI datasource using the Spring Framework and the Simple-JNDI library. >>>
Getting the Week Number From Any Date
Learn how to get the week number for a given date in Java. >>>
Injecting Spring Beans into Unmanaged Objects
Learn how to inject a Spring bean into an ordinary object. >>>
Testing @Cacheable on Spring Data Repositories
Learn how to isolate the caching layer in your Spring Data tests. >>>
Event-Driven Data with Apache Druid
A comprehensive guide to Apache Druid. >>>
Exploring JVM Tuning Flags
Learn a few ways to discover JVM tuning flags and learn how to work with them >>>
Writing IntelliJ IDEA Plugins Using Gradle
Learn how to write your own IntelliJ plugin using Gradle. >>>
boolean and boolean[] Memory Layout in the JVM
Learn the footprint of a boolean value in the JVM in different circumstances >>>
Returning the Generated Keys in JDBC
Learn how to return auto-generated keys with only the JDBC >>>
Spring YAML vs Properties
Compare the usage of Spring YAML versus the properties file. >>>
When Does JPA Set the Primary Key
Learn about the different strategies JPA uses to generate the primary key for an entity and at which moment each strategy sets the key value during persistence. >>>