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

Image may be NSFW.
Clik here to view.

A Simple Tagging Implementation with MongoDB

1. Overview In this tutorial, we’ll take a look at a simple tagging implementation using Java and MongoDB. For those unfamiliar with the concept, a tag is a keyword used as a “label” to group...

View Article


Image may be NSFW.
Clik here to view.

Hamcrest Object Matchers

1. Overview Hamcrest provides static matchers for making unit test assertions simpler and more legible. You can get started exploring some of the available matchers here. In this quick tutorial, we’ll...

View Article


Image may be NSFW.
Clik here to view.

Introduction to CheckStyle

1. Overview Checkstyle is an open source tool that checks code against a configurable set of rules. In this tutorial, we’re going to look at how to integrate Checkstyle into a Java project via Maven...

View Article

Image may be NSFW.
Clik here to view.

The “final” Keyword in Java

1. Overview While inheritance enables us to reuse existing code, sometimes we do need to set limitations on extensibility for various reasons; the final keyword allows us to do exactly that. In this...

View Article

Image may be NSFW.
Clik here to view.

Headers, Cookies and Parameters with REST-assured

1. Overview In this quick tutorial, we’ll explore some REST-assured advanced scenarios. We explored REST-assured before in the tutorial a Guide to REST-assured. To continue, we’ll cover examples that...

View Article


Image may be NSFW.
Clik here to view.

JSON Schema Validation with REST-assured

1. Overview The REST-assured library provides support for testing REST APIs, usually in JSON format. From time to time it may be desirable, without analyzing the response in detail, to know first-off...

View Article

Image may be NSFW.
Clik here to view.

Handling Daylight Savings Time in Java

1. Overview Daylight Saving Time, or DST, is a practice of advancing clocks during summer months in order to leverage an additional hour of the natural light (saving heating power, illumination power,...

View Article

Image may be NSFW.
Clik here to view.

Combining Observables in RxJava

1. Introduction In this quick tutorial, we’ll discuss different ways of combining Observables in RxJava. If you’re new to RxJava, definitely check out this intro tutorial first. Now, let’s jump right...

View Article


Image may be NSFW.
Clik here to view.

The Spring @Controller and @RestController Annotations

1. Overview In this quick tutorial, we’ll discuss the difference between @Controller and @RestController annotations in Spring MVC. The first annotation is used for traditional Spring controllers and...

View Article


Image may be NSFW.
Clik here to view.

Command-Line Arguments in Spring Boot

1. Overview In this quick tutorial, we’ll discuss how to pass command-line arguments to a Spring Boot application. We can use command-line arguments to configure our application, override application...

View Article

Image may be NSFW.
Clik here to view.

Publish and Receive Messages with Nats Java Client

1. Overview In this tutorial, we’ll use the Java Client for NATs to connect to a NATS Server and publish and receive messages. NATS offers three primary modes of message exchange. Publish/Subscribe...

View Article

Image may be NSFW.
Clik here to view.

Integration Testing with a Local DynamoDB Instance

1. Overview If we develop an application which uses Amazon’s DynamoDB, it can be tricky to develop integration tests without having a local instance. In this tutorial, we’ll explore multiple ways of...

View Article

Image may be NSFW.
Clik here to view.

Find Sum and Average in a Java Array

1. Introduction In this quick tutorial, we’ll cover how we can calculate sum & average in an array using both Java standard loops and the Stream API. 2. Find Sum of Array Elements 2.1. Sum Using a...

View Article


Image may be NSFW.
Clik here to view.

Handling Cookies and a Session in a Java Servlet

1. Overview In this tutorial, we’ll cover the handling of cookies and sessions in Java, using Servlets. Additionally, we’ll shortly describe what a cookie is, and explore some sample use cases for it....

View Article

Image may be NSFW.
Clik here to view.

Shutdown a Spring Boot Application

1. Overview Managing the lifecycle of Spring Boot Application is very important for a production-ready system. The Spring container handles the creation, initialization, and destruction of all the...

View Article


Image may be NSFW.
Clik here to view.

Creating and Deploying Smart Contracts with Solidity

 1. Overview The ability to run smart contracts is what has made the Ethereum blockchain so popular and disruptive. Before we explain what a smart contract is, let’s start with a definition of...

View Article

Image may be NSFW.
Clik here to view.

Introduction to Atlassian Fugue

1. Introduction Fugue is a Java library by Atlassian; it’s a collection of utilities supporting Functional Programming. In this write-up, we’ll focus on and explore the most important Fugue’s APIs. 2....

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 223

Here we go… 1. Spring and Java >> Monitor and troubleshoot Java applications and services with Datadog  Optimize performance with end-to-end tracing and out-of-the-box support for popular Java...

View Article

Image may be NSFW.
Clik here to view.

New Password Storage In Spring Security 5

1. Introduction With the latest Spring Security release, a lot has changed. One of those changes is how we can handle password encoding in our applications. In this tutorial, we’re going to explore...

View Article

Image may be NSFW.
Clik here to view.

Introduction to EasyMock

1. Introduction In the past, we’ve talked extensively about JMockit and Mockito. In this tutorial, we’ll give an introduction to another mocking tool – EasyMock. 2. Maven Dependencies Before we dive...

View Article
Browsing all 4535 articles
Browse latest View live


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