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

Image may be NSFW.
Clik here to view.

Spring Security – Cache Control Headers

1. Introduction In this article, we’ll explore how we can control HTTP caching with Spring Security. We’ll demonstrate its default behavior, and also explain the reasoning behind it. We’ll then look...

View Article


Image may be NSFW.
Clik here to view.

Working with Microsoft Excel in Java

1. Introduction In this tutorial, we will demonstrate the use of the Apache POI and JExcel APIs for working with Excel spreadsheets. Both libraries can be used to dynamically read, write and modify...

View Article


Image may be NSFW.
Clik here to view.

Guide to Java 8 groupingBy Collector

1. Introduction In this article, we’ll see how the groupingBy collector works using various examples. To understand the material covered in this article, a basic knowledge of Java 8 features is...

View Article

Image may be NSFW.
Clik here to view.

JAX-RS Client with Jersey

1. Overview Jersey is an open source framework for developing RESTFul Web Services. It also has great inbuilt client capabilities. In this quick tutorial, we will explore the creation of JAX-RS client...

View Article

Image may be NSFW.
Clik here to view.

Hibernate One to Many Annotation Tutorial

1. Introduction This quick Hibernate tutorial will take you through an example of one-to-many mapping using JPA annotations – an alternative to the XML descriptor approach. In simple terms,...

View Article


Image may be NSFW.
Clik here to view.

Avoiding the ConcurrentModificationException in Java

1. Introduction In this article, we’ll take a look at the ConcurrentModificationException class. First, we’ll give an explanation how it works, and then prove it by using a test for triggering it....

View Article

Image may be NSFW.
Clik here to view.

Guide to WeakHashMap in Java

1. Overview In this article, we will be looking at a WeakHashMap from the java.util package. In order to understand the data structure, we’ll use it here to roll out a simple cache implementation....

View Article

Image may be NSFW.
Clik here to view.

Strategy Design Pattern in Java 8

1. Introduction In this article, we’ll look at how we can implement the strategy design pattern in Java 8. First, we’ll give an overview of the pattern, and explain how it’s been traditionally...

View Article


Image may be NSFW.
Clik here to view.

Java Web Weekly, Issue 163

A full week in the Java ecosystem. Here we go… 1. Spring and Java >> Java Module System Hands-On Guide [sitepoint.com] As Java 9 is getting closer and closer, it might be worth looking at a...

View Article


Image may be NSFW.
Clik here to view.

Quick Intro to Full-Text Search with ElasticSearch

1. Overview Full-text search queries and performs linguistic searches against documents. It includes single or multiple words or phrases and returns documents that match search condition....

View Article

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
Browsing all 3610 articles
Browse latest View live


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