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

Image may be NSFW.
Clik here to view.

Spring MVC Streaming and SSE Request Processing

1. Introduction This simple tutorial demonstrates the use of several asynchronous and streaming objects in Spring MVC 5.x.x. Specifically, we’ll review three key classes: ResponseBodyEmitter...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 240

Here we go… 1. Spring and Java >> WireMock Tutorial: Request Matching, Part Four [petrikainulainen.net] A nice write-up that shows how to specify expectations for XML documents received by a web...

View Article


Image may be NSFW.
Clik here to view.

Logging Exceptions Using SLF4J

1. Overview In this quick tutorial, we’ll show how to log exceptions in Java using the SLF4J API. We’ll use the slf4j-simple API as the logging implementation. You can explore different logging...

View Article

Image may be NSFW.
Clik here to view.

Creating a Custom Log4j2 Appender

1. Introduction In this tutorial, we’ll learn about creating a custom Log4j2 appender. If you’re looking for the introduction to Log4j2, please take a look at this article. Log4j2 ships with a lot of...

View Article

Image may be NSFW.
Clik here to view.

MQTT Client in Java

1. Overview In this tutorial, we’ll see how we can add MQTT messaging in a Java project using the libraries provided by the Eclipse Paho project. 2. MQTT Primer MQTT (MQ Telemetry Transport) is a...

View Article


Image may be NSFW.
Clik here to view.

Sample Application with Spring Boot and Vaadin

1. Overview Vaadin is a server-side Java framework for creating web user interfaces. In this tutorial, we’ll explore how to use a Vaadin based UI on a Spring Boot based backend. For an introduction to...

View Article

Image may be NSFW.
Clik here to view.

Java Null-Safe Streams from Collections

1. Overview In this tutorial, we’ll see how to create null-safe streams from Java collections. To start with, some familiarity with Java 8’s Method References, Lambda Expressions, Optional and Stream...

View Article

Image may be NSFW.
Clik here to view.

java.util.Date vs java.sql.Date

1. Overview In this tutorial, we’re going to compare two date classes: java.util.Date and java.sql.Date. Once we complete the comparison, it should be clear which one to use and why. 2. java.util.Date...

View Article


Image may be NSFW.
Clik here to view.

A Simple E-Commerce Implementation with Spring

1. Overview of our E-commerce Application In this tutorial, we’ll implement a simple e-commerce application. We’ll develop an API using Spring Boot and a client application that will consume the API...

View Article


Image may be NSFW.
Clik here to view.

Remove All Occurrences of a Specific Value from a List

1. Introduction In Java, it’s straightforward to remove a specific value from a List using List.remove(). However, efficiently removing all occurrences of a value is much harder. In this tutorial,...

View Article

Image may be NSFW.
Clik here to view.

Thread Safe LIFO Data Structure Implementations

1. Introduction In this tutorial, we’ll discuss various options for Thread-safe LIFO Data structure implementations. In the LIFO data structure, elements are inserted and retrieved according to the...

View Article

Image may be NSFW.
Clik here to view.

Custom Validation MessageSource in Spring Boot

1. Overview MessageSource is a powerful feature available in Spring applications. This helps application developers handle various complex scenarios with writing much extra code, such as...

View Article

Image may be NSFW.
Clik here to view.

Concurrent Strategies using MDBs

1. Introduction Message Driven Beans, also known as “MDB”, handle message processing in an asynchronous context. We can learn the basics of MDB in this article. This tutorial will discuss some...

View Article


Image may be NSFW.
Clik here to view.

Set the Time Zone of a Date in Java

1. Overview In this quick tutorial, we’ll see how to set the time zone of a date using Java 7, Java 8 and the Joda-Time library. 2. Using Java 8 Java 8 introduced a new Date-Time API for working with...

View Article

Image may be NSFW.
Clik here to view.

Why String is Immutable in Java?

1. Introduction In Java, Strings are immutable. An obvious question that is quite prevalent in interviews is “Why Strings are designed as immutable in Java?” James Gosling, the creator of Java, was...

View Article


Image may be NSFW.
Clik here to view.

Running JUnit Tests Programmatically, from a Java Application

1. Overview In this tutorial, we’ll show how to run JUnit tests directly from Java code – there are scenarios where this option comes in handy. If you are new to JUnit, or if you want to upgrade to...

View Article

Image may be NSFW.
Clik here to view.

Default Password Encoder in Spring Security 5

1. Overview In Spring Security 4, it was possible to store passwords in plain text using in-memory authentication. A major overhaul of the password management process in version 5 has introduced more...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 241

Here we go… 1. Spring and Java >> Spring Boot – Best Practices [e4developer.com] This primer can help jumpstart your journey down the road of Spring Boot. >> It’s time! Migrating to Java...

View Article

Image may be NSFW.
Clik here to view.

Extracting Principal and Authorities using Spring Security OAuth

1. Overview In this tutorial, we’ll illustrate how to create an application that delegates user authentication to a third party, as well as to a custom authorization server, using Spring Boot and...

View Article

Image may be NSFW.
Clik here to view.

Server-Sent Events (SSE) In JAX-RS

1. Overview Server-Sent Events (SSE) is an HTTP based specification that provides a way to establish a long-running and mono-channel connection from the server to the client.  The client initiates the...

View Article
Browsing all 4535 articles
Browse latest View live


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