Quantcast
Channel: Baeldung
Browsing all 4535 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Guide to Java Parallel Collectors Library

1. Introduction Parallel-collectors is a small library that provides a set of Java Stream API collectors that enable parallel processing – while at the same time circumventing main deficiencies of...

View Article


Image may be NSFW.
Clik here to view.

Handling Maven Invalid LOC Header Error

1. Introduction Sometimes when a jar in our local Maven repo is corrupt, we’ll see the error: Invalid LOC Header. In this tutorial, we’re going to learn when it happens and how to handle and even at...

View Article


Image may be NSFW.
Clik here to view.

Spring Data MongoDB Tailable Cursors

1. Introduction In this tutorial, we’re going to discuss how to use MongoDB as an infinite data stream by utilizing tailable cursors with Spring Data MongoDB. 2. Tailable Cursors When we execute a...

View Article

Image may be NSFW.
Clik here to view.

Guide to @EnableConfigurationProperties

1. Introduction In this quick tutorial, we’ll show how to use an @EnableConfigurationProperties annotation with @ConfigurationProperties annotated classes. 2. Purpose of @EnableConfigurationProperties...

View Article

Image may be NSFW.
Clik here to view.

The Difference Between Collection.stream().forEach() and Collection.forEach()

1. Introduction There are several options to iterate over a collection in Java. In this short tutorial, we’ll look at two similar looking approaches — Collection.stream().forEach() and...

View Article


Image may be NSFW.
Clik here to view.

Understanding getBean() in Spring

1. Introduction In this tutorial, we’re going to go through different variants of the BeanFactory.getBean() method. Simply put, as the name of the method also suggests, this is responsible for...

View Article

Image may be NSFW.
Clik here to view.

Breaking Out of Nested Loops

1. Overview In this tutorial, we’ll create some examples to show different ways to use break within a loop. Next, we’ll also see how to terminate a loop without using break at all. 2. The Problem...

View Article

Image may be NSFW.
Clik here to view.

Check If a String Is a Valid Date in Java

1. Introduction In this tutorial, we’ll discuss the various ways to check if a String contains a valid date in Java. We’ll discuss the solutions before Java 8, after Java 8, and using the Apache...

View Article


Image may be NSFW.
Clik here to view.

Key Value Store with Chronicle Map

 1. Overview In this tutorial, we’re going to see how we can use the Chronicle Map for storing key-value pairs. We’ll also be creating short examples to demonstrate its behavior and usage. 2. What is a...

View Article


Image may be NSFW.
Clik here to view.

Checking for Empty or Blank Strings in Java

1. Introduction In this tutorial, we’ll go through some ways of checking for empty or blank strings in Java. We’ve got some native language approaches as well as a couple of libraries. 2. Empty vs....

View Article

Image may be NSFW.
Clik here to view.

Checking If a String Is a Repeated Substring

1. Introduction In this tutorial, we’ll show how we can check in Java if a String is a sequence of repeated substrings. 2. The Problem Before we continue with the implementation, let’s set up some...

View Article

Image may be NSFW.
Clik here to view.

Java Multi-line String

1. Overview Due to the fact that there is no native multi-line string class in Java yet, it's a little bit tricky to create and utilize multi-line strings. In this tutorial, we walk through several...

View Article

Image may be NSFW.
Clik here to view.

Why to Choose Spring as Your Java Framework?

1. Overview In this article, we’ll go through the main value proposition of Spring as one of the most popular Java frameworks. More importantly, we’ll try to understand the reasons for Spring being our...

View Article


Image may be NSFW.
Clik here to view.

Setting the MySQL JDBC Timezone Using Spring Boot Configuration

1. Overview Sometimes, when we’re storing dates in MySQL, we realize that the date from the database is different from our system or JVM. Other times, we just need to run our app with another timezone....

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 288

Here we go… 1. Spring and Java >> Hiding Services & Runtime Discovery with Spring Cloud Gateway [spring.io] A solid, ready-to-run example using Spring Cloud’s gateway and registry services....

View Article


Image may be NSFW.
Clik here to view.

A Guide to NanoHTTPD

1. Introduction NanoHTTPD is an open-source, lightweight, web server written in Java. In this tutorial, we’ll create a few REST APIs to explore its features. 2. Project Setup Let’s add the NanoHTTPD...

View Article

Image may be NSFW.
Clik here to view.

A Guide to Apache Mesos

1. Overview We usually deploy various applications on the same cluster of machines. For example, it’s common nowadays to have a distributed processing engine like Apache Spark or Apache Flink with...

View Article


Image may be NSFW.
Clik here to view.

Guide to MapDB

1. Introduction In this article, we’ll look at the MapDB library — an embedded database engine accessed through a collection-like API. We start by exploring the core classes DB and DBMaker that help...

View Article

Image may be NSFW.
Clik here to view.

The Java SecureRandom Class

1. Introduction In this short tutorial, we’ll learn about java.security.SecureRandom, a class that provides a cryptographically strong random number generator. 2. Comparison to java.util.Random...

View Article

Image may be NSFW.
Clik here to view.

JWS + JWK in a Spring Security OAuth2 Application

1. Overview In this tutorial, we’ll learn about JSON Web Signature (JWS), and how it can be implemented using the JSON Web Key (JWK) specification on applications configured with Spring Security...

View Article
Browsing all 4535 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>