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

Image may be NSFW.
Clik here to view.

Vert.x Spring Integration

1. Overview In this quick article, we’ll discuss the integration of Spring with Vert-x and leverage the best of both worlds: the powerful and well-known Spring feature, and the reactive single-event...

View Article


Image may be NSFW.
Clik here to view.

How to Get a Name of a Method Being Executed?

1. Overview Sometimes we need to know the name of the current Java method being executed. This quick article presents a couple of simple ways of getting hold of the method name in the current...

View Article


Image may be NSFW.
Clik here to view.

Spring YAML Configuration

1. Overview One of the ways of configuring Spring applications is using YAML configuration files. In this quick article, we’ll configure different profiles for a simple Spring Boot application using...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 182

Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Kotlin and Spring: Working with JPA and data classes [codecentric.de] Kotlin makes it possible to create...

View Article

Image may be NSFW.
Clik here to view.

Allow Authentication from Accepted Locations Only with Spring Security

1. Overview In this tutorial, we’ll focus on a very interesting security feature – securing the account of a user based on their location. Simply put, we’ll block any login from unusual or...

View Article


Image may be NSFW.
Clik here to view.

How to Warm Up the JVM

1. Overview The JVM is one of the oldest yet powerful virtual machines ever built. In this article, we have a quick look at what it means to warm up a JVM and how to do it. 2. JVM Architecture Basics...

View Article

Image may be NSFW.
Clik here to view.

Iterate over a Map in Java

1. Overview In this quick article, we’ll have a look at the different ways of iterating through the entries of a Map in Java. Simply put, we can extract the contents of a Map using keySet(),...

View Article

Image may be NSFW.
Clik here to view.

Monte Carlo Tree Search for Tic-Tac-Toe Game

1. Overview In this article, we’re going to explore the Monte Carlo Tree Search (MCTS) algorithm and its applications. We’ll look at its phases in detail by implementing the game of Tic-Tac-Toe in...

View Article


Image may be NSFW.
Clik here to view.

Spring with Maven BOM

1. Overview In this quick tutorial, we’re going to look at how Maven, a tool based on the concept of Project Object Model (POM), can make use of a BOM or “Bill Of Materials”. For more details about...

View Article


Image may be NSFW.
Clik here to view.

A Java Client for a WebSockets API

1. Introduction HTTP (Hypertext Transfer Protocol) is a stateless request-response protocol. Its simple design makes it very scalable but unsuitable and inefficient for highly interactive real-time...

View Article

Image may be NSFW.
Clik here to view.

CyclicBarrier in Java

1. Introduction CyclicBarriers are synchronization constructs that were introduced with Java 5 as a part of the java.util.concurrent package. In this article, we’ll explore this implementation in a...

View Article

Introduction to AsciiDoctor in Java

1. Introduction In this article, we’ll make a quick introduction on how to use Ascii Doctor with Java. We’ll demonstrate how to generate HTML5 or PDF from an AsciiDoc document. 2. What is AsciiDoc...

View Article

A Guide To Cron Expressions

1. Overview Simply put, cron is a basic utility available on Unix-based systems. It enables users to schedule tasks to run periodically at a specified date/time. And, it’s naturally a great tool for...

View Article


The HttpMediaTypeNotAcceptableException in Spring MVC

1. Overview In this quick article, we’ll have a look at the HttpMediaTypeNotAcceptableException exception, and understand the cases where we might encounter it. 2. The Problem When implementing an API...

View Article

Handling Exceptions in Lambda Expression Using Vavr

1. Introduction The Functional Interfaces provided by the JDK are not prepared properly for the handling of checked exceptions. If you want to read more about the problem, check this article. In this...

View Article


Apache Commons Collections SetUtils

1. Overview In this article, we’ll be exploring the SetUtils API of Apache Commons Collections library. Simply put, these utilities can be used to execute certain operations on Set data structures in...

View Article

Introduction to Netflix Servo

1. Overview Netflix Servo is a metrics tool for Java applications. Servo is similar to Dropwizard Metrics, yet much simpler. It leverages JMX only to provide a simple interface for exposing and...

View Article


Spring Cloud Tutorial

Building cloud-ready applications have its own set of challenges. This series explores these challenges and of course guides you through a full microservice implementation using Spring Boot and Spring...

View Article

Spring Cloud Series – The Gateway Pattern

1. Overview So far, in our cloud application, we’ve used the Gateway Pattern to support two main features. First, we insulated our clients from each service, eliminating the need for cross-origin...

View Article

Apache Commons Collections OrderedMap

1. Overview The Apache Commons Collections library provides useful classes that complement the Java Collections Framework. In this article, we will review the interface OrderedMap, which extends...

View Article
Browsing all 3522 articles
Browse latest View live