Building a Basic UAA-Secured JHipster Microservice
1. Overview In previous articles, we’ve covered the basics of JHipster and how to use it to generate a microservices-based application. In this tutorial, we’ll explore JHipster’s User Account and...
View ArticleDebugging Spring Applications
1. Introduction Debugging is one of the most important tools for writing software. In this tutorial, we’ll review some of the ways in which we can debug Spring applications. We’ll also see how Spring...
View ArticlePersist a JSON Object Using Hibernate
1. Overview Some projects may require JSON objects to be persisted in a relational database. In this tutorial, we’ll see how to take a JSON object and persist it in a relational database. There are...
View ArticleIntroduction to JVM Code Cache
1. Introduction In this tutorial, we’re going to have a quick look at and learn about the JVM’s code cache memory. 2. What is the Code Cache? Simply put, JVM Code Cache is an area where JVM stores its...
View ArticleJava Weekly, Issue 261
Here we go… 1. Spring and Java >> Raw String Literals Removed From Java 12 as Feature Set Frozen [infoq.com] A rundown of the features that made the cut for Java 12, and one highly anticipated...
View ArticleIntersection of Two Lists in Java
1. Overview In this tutorial, we’ll learn how to retrieve the intersection of two Lists. Like many other things, this has become much easier thanks to the introduction of streams in Java 8. 2....
View ArticleMapping a Dynamic JSON Object with Jackson
1. Introduction Working with predefined JSON data structures with Jackson is straightforward. However, sometimes we need to handle dynamic JSON objects, which have unknown properties. In this short...
View ArticleReplace a Character at a Specific Index in a String in Java
1. Introduction In this quick tutorial, we’ll demonstrate how to replace a character at a specific index in a String in Java. We’ll present four implementations of simple methods that take the original...
View ArticleVerbose Garbage Collection in Java
1. Overview In this tutorial, we’ll take a look at how to turn on verbose garbage collection in a Java application. We’ll begin by introducing what verbose garbage collection is and why it can be...
View ArticleIntroduction to Akka HTTP
1. Overview In this tutorial, with the help of Akka’s Actor & Stream models, we’ll learn how to set up Akka to create an HTTP API that provides basic CRUD operations. 2. Maven Dependencies To...
View ArticleDifferences Between HashMap and Hashtable
1. Overview In this short tutorial, we are going to focus on the core differences between the Hashtable and the HashMap. 2. Hashtable and HashMap in Java Hashtable and HashMap are quite similar – both...
View ArticleHibernate 5 Bootstrapping API
1. Overview In this tutorial, we’ll explore the new mechanism by which we can initialize and start a Hibernate SessionFactory. We’ll especially focus on the new native bootstrapping process as it was...
View ArticlePassing Parameters to Java Threads
1. Overview In this tutorial, we’ll run through different options available for passing parameters to a Java thread. 2. Thread Fundamentals As a quick reminder, we can create a thread in Java by...
View ArticleJEE vs J2EE vs Jakarta
1. Introduction Ever heard of Java EE? How about Java 2EE, J2EE, or now Jakarta EE? Actually, these are all different names for the same thing: a set of enterprise specifications that extend Java SE....
View ArticleConcatenating Strings In Java
1. Introduction Java provides a substantial number of methods and classes dedicated to concatenating Strings. In this tutorial, we’ll dive into several of them as well as outline some common pitfalls...
View ArticleConvert a Comma Separated String to a List in Java
1. Overview In this tutorial, we’ll look at converting a comma-separated String into a List of strings. Additionally, we’ll transform a comma-separated String of integers to a List of Integers. 2....
View ArticleCriteria Queries Using JPA Metamodel
1. Overview In this tutorial, we’ll discuss how to use the JPA static metamodel classes while writing criteria queries in Hibernate. We’ll need a basic understanding of criteria query APIs in...
View ArticleIntegrating Spring Boot with HSQLDB
1. Overview Spring Boot makes it really easy to work with different database systems, without the hassle of manual dependency management. More specifically, Spring Data JPA starter provides all the...
View ArticleINSERT Statement in JPA
1. Overview In this quick tutorial, we’ll learn how to perform an INSERT statement on JPA objects. For more information about Hibernate in general, check out our comprehensive guide to JPA with Spring...
View ArticleJava 11 Nest Based Access Control
1. Introduction In this tutorial, we will explore nests, the new access control context introduced in Java 11. 2. Before Java 11 2.1. Nested Types Java allows classes and interfaces to be nested within...
View Article