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

Image may be NSFW.
Clik here to view.

Hibernate Named Query

1. Overview A major disadvantage of having HQL and SQL scattered across data access objects is that it makes the code unreadable. Hence, it might make sense to group all HQL and SQL in one place and...

View Article


Image may be NSFW.
Clik here to view.

Debugging Reactive Streams in Spring 5

1. Overview Debugging reactive streams is probably one of the main challenges we’ll have to face once we start using these data structures. And having in mind that Reactive Streams have been gaining...

View Article


Image may be NSFW.
Clik here to view.

How to Check if Java is Installed

1. Overview In this short tutorial, we’re going to take a look at a few ways to determine if Java is installed on a machine. 2. Command Line First, let’s open a command window or terminal and enter:...

View Article

Image may be NSFW.
Clik here to view.

How to Start a Thread in Java

1. Introduction In this tutorial, we’re going to explore different ways to start a thread and execute parallel tasks. This is very useful, in particular when dealing with long or recurring operations...

View Article

Image may be NSFW.
Clik here to view.

Connecting Through Proxy Servers in Core Java

1. Introduction Proxy servers act as intermediaries between client applications and other servers. In an enterprise setting, we often use them to help provide control over the content that users...

View Article


Image may be NSFW.
Clik here to view.

Converting Synchronous and Asynchronous APIs to Observables using RxJava2

1. Overview In this tutorial, we’re going to learn how to transform traditional synchronous and asynchronous APIs into Observables using RxJava2 operators. We’ll create a few simple functions that will...

View Article

Image may be NSFW.
Clik here to view.

Escape JSON String in Java

1. Overview In this short tutorial, we’ll show some ways to escape a JSON string in Java. We’ll take a quick tour of the most popular JSON-processing libraries and how they make escaping a simple task....

View Article

Image may be NSFW.
Clik here to view.

Comparing Two HashMaps in Java

1. Overview In this tutorial, we’re going to explore different ways to compare two HashMaps in Java. We’ll discuss multiple ways to check if two HashMaps are similar. We’ll also use Java 8 Stream API...

View Article


Image may be NSFW.
Clik here to view.

Spring MVC Interview Questions

1. Introduction Spring MVC is the original web framework from Spring built on the Servlet API. It provides Model-View-Controller architecture that can be used to develop flexible web applications. In...

View Article


Image may be NSFW.
Clik here to view.

Java Stream Filter with Lambda Expression

1. Introduction In this quick tutorial, we’ll explore the use of the Stream.filter() method when we work with Streams in Java. We’ll show how to use it and how to handle special cases with checked...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 259

Here we go… 1. Spring and Java >> Reactive Programming and Relational Databases [spring.io] A brief look at why R2DBC may be winning the race to integrate the Reactive Programming model with...

View Article

Image may be NSFW.
Clik here to view.

Guide to the Hibernate EntityManager

1. Introduction EntityManager is a part of the Java Persistence API. Chiefly, it implements the programming interfaces and lifecycle rules defined by the JPA 2.0 specification. Moreover, we can access...

View Article

Image may be NSFW.
Clik here to view.

Java 11 Single File Source Code

1. Introduction JDK 11, which is the implementation of Java SE 11, released in September 2018. In this tutorial, we’ll cover the new Java 11 feature of launching single-file source-code programs. 2....

View Article


Image may be NSFW.
Clik here to view.

Using c3p0 with Hibernate

1. Overview It’s quite expensive to establish database connections. Database connection pooling is a well-established way to lower this expenditure. In this tutorial, we’ll discuss how to use c3p0 with...

View Article

Image may be NSFW.
Clik here to view.

Introduction to Functional Java

1. Overview In this tutorial, we’ll provide a quick overview of the Functional Java library along with a few examples. 2. The Functional Java Library The Functional Java library is an open source...

View Article


Image may be NSFW.
Clik here to view.

Java 11 Local Variable Syntax for Lambda Parameters

1. Introduction The local variable syntax for lambda parameters is the only language feature introduced in Java 11. In this tutorial, we’ll explore and use this new feature. 2. Local Variable Syntax...

View Article

Image may be NSFW.
Clik here to view.

Programmatically Restarting a Spring Boot Application

1. Overview In this tutorial, we’ll show how to programmatically restart a Spring Boot application. Restarting our application can be very handy in some cases: Reloading config files upon changing some...

View Article


Image may be NSFW.
Clik here to view.

Introduction to RSocket

1. Introduction In this tutorial, we’ll take a first look at RSocket and how it enables client-server communication. 2. What is RSocket? RSocket is a binary, point-to-point communication protocol...

View Article

Image may be NSFW.
Clik here to view.

Testing with Spring and Spock

1. Introduction In this short tutorial, we’ll show the benefits of combining the supporting power of Spring Boot‘s testing framework and the expressiveness of the Spock framework whether that be for...

View Article

Image may be NSFW.
Clik here to view.

Guide to ShedLock with Spring

1. Overview Spring provides an easy to implement API for scheduling jobs. It works great until we deploy multiple instances of our application. Spring by default cannot handle scheduler synchronization...

View Article
Browsing all 4535 articles
Browse latest View live