The loose types of Java generics are hard to coerce into the strong types of Java arrays. We explore the problem and some common solutions. >>>
Yearly Archives: 2020
Reusing Docker Layers with Spring Boot
In this tutorial, we’ll see how to exploit the new capabilities of Spring Boot to reuse Docker layers. >>>
Java Weekly, Issue 360
Meet Spring Boot 2.4, Embracing subatomic Java, Catching up with the new Java features, and a set of practical guides on distributed systems. >>>
Testing Kafka and Spring Boot
Learn about a couple of approaches for testing Kafka applications with Spring Boot. >>>
Defining Indexes in JPA
Learn how to implement and use indexes using JPA. >>>
Maven Packaging Types
In this article, we explore the different packaging types available in Maven. >>>
DispatcherServlet and web.xml in Spring Boot
Learn how to migrate code from a web.xml file to DispatcherServlet in a Spring Boot application. >>>
Java Weekly, Issue 359
All things Reactive: R2DBC joins Reactive Foundation, Reactive Manifesto II, and The Reactive Principles. NUMA meets G1, GraphQL at scale, and write angry! >>>
JPA CascadeType.REMOVE vs orphanRemoval
Learn about the difference between JPA CascadeType.REMOVE and orphanRemoval for deleting entities. >>>
Creating a Discord Bot with Discord4J + Spring Boot
Explore all the necessary steps for creating a Discord bot using the Discord4J library and Spring Boot >>>
Sealed Classes and Interfaces in Java
Explore sealed classes and interfaces, a preview feature in Java SE 15, delivered in Java 17. >>>
Ignoring Fields With the JPA @Transient Annotation
Learn how to ignore fields using the JPA @Transient annotation in Java. >>>
Localizing Exception Messages in Java
Learn how to use the getLocalizedMessage() method to provide localized exception messages >>>
Java IndexOutOfBoundsException “Source Does Not Fit in Dest”
Learn about the IndexOutOfBoundsException: “Source does not fit in dest” in Java. >>>
Functional Programming in Java
A comprehensive overview of Functional Programming in Java. >>>
Check if a Java Program Is Running in 64-Bit or 32-Bit JVM
Learn how a Java program can detect whether it’s running in a 64-bit or 32-bit JVM. >>>
Extending Enums in Java
Learn how to extend Enums in Java. >>>
Java (String) or .toString()?
Learn about the differences between String casting and executing the toString() method in Java. >>>
Java Weekly, Issue 358
2 million virtual threads with Loom, reactive to coroutines, cloud-native Spring Boot, working effectively with databases and context matters! >>>
The transient Keyword in Java
Learn about the transient keyword and see its behavior through examples >>>