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

Image may be NSFW.
Clik here to view.

How to Design a Genetic Algorithm in Java

1. Introduction The aim of this series is to explain the idea of genetic algorithms. Genetic algorithms are designed to solve problems by using the same processes as in nature — they use a combination...

View Article


Image may be NSFW.
Clik here to view.

Two Login Pages with Spring Security

1. Introduction In this tutorial, we will see how we can configure Spring Security to work with two different login pages using two different Spring Security http elements in the configuration. 2....

View Article


Image may be NSFW.
Clik here to view.

Java 8 and Infinite Streams

1. Overview In this article, we will be looking at a java.util.Stream API and we’ll see how we can use that construct to operate on an infinite stream of data/elements. The possibility of working on...

View Article

Image may be NSFW.
Clik here to view.

How to Test RxJava?

1. Overview In this article, we’ll be looking at ways of testing code written using RxJava. The typical flow we are creating with RxJava consists of an Observable and an Observer. The observable is a...

View Article

Image may be NSFW.
Clik here to view.

Serializing and Deserializing Optionals using Jackson

1. Introduction In this article, we’ll give an overview of the Optional class, and then explain some problems that we might run into when using it with Jackson. Following this, we’ll introduce a...

View Article


Image may be NSFW.
Clik here to view.

Custom Thread Pools In Java 8 Parallel Streams

1. Overview Java 8 introduced the concept of Streams as an efficient way of carrying out bulk operations on data. And parallel Streams can be obtained in environments that support concurrency. These...

View Article

Image may be NSFW.
Clik here to view.

Spring Security – Customize the 403 Forbidden/Access Denied Page

1. Introduction In this article, we will show how to customize the access denied page in a Spring Security project. This can be achieved either through the Spring Security configuration or web...

View Article

Image may be NSFW.
Clik here to view.

The @ServletComponentScan Annotation in Spring Boot

1. Overview In this article, we’ll go through the new @ServletComponentScan annotation in Spring Boot. The aim is to support the following Servlet 3.0 annotations: javax.servlet.annotation.WebFilter...

View Article


Image may be NSFW.
Clik here to view.

String Operations with Java Streams

1. Overview Java 8 has introduced a new Stream API that lets us process data in a declarative manner. In this quick article, we would learn how to use the Stream API to split a comma-separated String...

View Article


Image may be NSFW.
Clik here to view.

Java Web Weekly, Issue 164

Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Signing and verifying a standalone JAR [frankel.ch] Signing a JAR file created by Spring Boot can be quite...

View Article

Image may be NSFW.
Clik here to view.

Introduction to Guava CacheLoader

1. Introduction In this article, we’ll introduce the Guava CacheLoader.  Before reading further, it’s recommended that there is a basic understanding of the LoadingCache class first. This is because...

View Article

Image may be NSFW.
Clik here to view.

Advanced HttpClient Configuration

1. Overview In this article, we will be looking at the advanced usage of the Apache HttpClient library. We’ll look at the examples of adding custom headers to HTTP requests, and we’ll see how to...

View Article

Image may be NSFW.
Clik here to view.

A Guide to Neo4J with Java

1. Introduction This article is about Neo4j – one of the most mature and full-featured graph databases on the market today. Graph databases approach the task of data modeling with the view that many...

View Article


Image may be NSFW.
Clik here to view.

Guide to Guava’s EventBus

1. Overview Guava library provides the EventBus which allows publish-subscribe communication between components. In this tutorial, we will look at how to use some of the features of the EventBus. 2....

View Article

Image may be NSFW.
Clik here to view.

Introduction to Apache Velocity

1. Overview Velocity is a Java-based templating engine. It’s an open source web framework designed to be used as a view component in the MVC architecture, and it provides an alternative to some...

View Article


Image may be NSFW.
Clik here to view.

A Quick JUnit vs TestNG Comparison

1. Overview JUnit and TestNG are undoubtedly the two most popular unit-testing frameworks in the Java ecosystem. While TestNG itself is inspired by JUnit, it provides its own distinctive features and...

View Article

Image may be NSFW.
Clik here to view.

Intro to Apache BVal

1. Introduction In this article, we will take a look at the Apache BVal library’s implementation of the Java Bean Validation specification (JSR 349). 2. Maven Dependencies In order to use Apache BVal,...

View Article


Image may be NSFW.
Clik here to view.

Uploading and Displaying Excel Files with Spring MVC

1. Introduction In this article, we will demonstrate how to upload Excel files and display their content in a web page using the Spring MVC framework. 2. Uploading Excel Files In order to be able to...

View Article

Image may be NSFW.
Clik here to view.

Guide to Spring WebUtils and ServletRequestUtils

1. Overview In this quick article, we’ll explore the build-in web request utils in Spring MVC – WebUtils, ServletRequestUtils. 2. WebUtils and ServletRequestUtils In almost all applications, we face...

View Article

Image may be NSFW.
Clik here to view.

Simple Jenkins Pipeline with Marathon and Mesos

1. Introduction In this article, we’ll be implementing a simple Continuous Delivery pipeline with Jenkins, Marathon and Mesos. First, we will give a high level overview of the technology stack and...

View Article
Browsing all 4535 articles
Browse latest View live


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