Difference Between JVM, JRE, and JDK
1. Overview In this article, we’ll discuss differences between JVM, JRE, and JDK by considering their components and uses. 2. JVM Java Virtual Machine (JVM) is an implementation of a virtual machine...
View ArticleMockito ArgumentMatchers
1. Overview This tutorial shows how to use the ArgumentMatcher and how it differs from the ArgumentCaptor. For an introduction to the Mockito framework, please refer to this article. 2. Maven...
View ArticleSpring Core Annotations
1. Overview We can leverage the capabilities of Spring DI engine using the annotations in the org.springframework.beans.factory.annotation and org.springframework.context.annotation packages. We often...
View ArticleJava 9 java.lang.Module API
1. Introduction Following A Guide to Java 9 Modularity, in this article, we’re going to explore the java.lang.Module API that was introduced alongside the Java Platform Module System. This API...
View ArticleConfigure a RestTemplate with RestTemplateBuilder
1. Introduction In this quick tutorial, we’re going to look at how to configure a Spring RestTemplate bean. Let’s start by discussing the three main configuration types: using the default...
View ArticleJUnit5 Programmatic Extension Registration with @RegisterExtension
1. Overview JUnit 5 provides multiple methods for registering extensions. For an overview of some of these methods, refer to our Guide to JUnit 5 Extensions. In this quick tutorial, we’ll focus on...
View ArticleJava Weekly, Issue 232
Here we go… 1. Spring and Java >> Truth First, or Why You Should Mostly Implement Database First Designs [blog.jooq.org] Some solid points to consider when thinking about where the source of...
View ArticleSpring Security OAuth Guides
OAuth2 Basics >> Spring REST API + OAuth2 + AngularJS >> Using JWT with Spring Security OAuth >> Testing an OAuth Secured API with Spring MVC Advanced Scenarios with OAuth2 >>...
View ArticleREST Query Language Over Multiple Tables with Querydsl Web Support
1. Overview In this tutorial, we’ll continue with the second part of Spring Data Querydsl Web Support. Here, we’ll focus on associated entities and how to create queries over HTTP. Following the same...
View ArticleJagged Arrays In Java
1. Overview A jagged array in Java is a multi-dimensional array comprising arrays of varying sizes as its elements. It’s also referred to as “an array of arrays” or “ragged array”. In this quick...
View ArticleLearn Spring Boot
Spring Boot – Basics >> Spring Boot Tutorial – Bootstrap a Simple Application >> Spring Boot Annotations >> Intro to Spring Boot Starters >> Spring Boot Actuator >>...
View ArticleBinding a List in Thymeleaf
1. Overview In this quick tutorial, we’re going to show how to bind a List object in Thymeleaf. To learn how to integrate Thymeleaf with Spring, you can check out our main Spring article here – where...
View ArticleWorking with Enums in Kotlin
1. Overview In this tutorial, we’ll deep dive into Kotlin enums. With the evolution of programming languages, the usage and application of enums have also advanced. Enum constants today aren’t just...
View ArticleJava EE 8 Security API
1. Overview The Java EE 8 Security API is the new standard and a portable way of handling security concerns in Java containers. In this article, we’ll look at the three core features of the API: HTTP...
View ArticleHistograms with Apache Commons Frequency
1. Overview In this tutorial, we’re going to look at how we can present data on a histogram with the help of Apache Commons Frequency class. The Frequency class is part of part of the Apache Commons...
View ArticleGuide to the java.util.Arrays Class
1. Introduction In this tutorial, we’ll take a look at java.util.Arrays, a utility class that has been part of Java since Java 1.2. Using Arrays, we can create, compare, sort, search, stream, and...
View ArticleGeneralized Target-Type Inference in Java
1. Introduction Type Inference was introduced in Java 5 to complement the introduction of generics and was substantially expanded in following Java releases, which is also referred to as Generalized...
View ArticleThin JARs with Spring Boot
1. Introduction In this tutorial, we’re going to look at how to build a Spring Boot project into a thin JAR file, using the spring-boot-thin-launcher project. Spring Boot is known for its “fat” JAR...
View ArticleLearn JUnit
JUnit – Testing Basics >> A Guide to JUnit 5 >> JUnit 5 @Test Annotation >> @Before vs @BeforeClass vs @BeforeEach vs @BeforeAll >> Assert an Exception is Thrown in JUnit 4 and...
View ArticleJava Weekly, Issue 233
Here we go… 1. Spring and Java >> Unlocking Intersection Types With ‘var’ In Java 10 [blog.codefx.org] As a side effect of introducing “var” to Java, we also got the support for intersection...
View Article