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

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 398

1. Spring and Java >> What's New in Java 16 [infoq.com] An overview of new features in Java 16: records, pattern matching for instanceof, sealed classes, and more! >> JEP 416: Reimplement...

View Article


Image may be NSFW.
Clik here to view.

Inserting Delays Between Requests in Apache JMeter

1. Overview When we're testing with Apache JMeter, we may wish to add a delay between the requests to make a better model of our user behavior. In this tutorial, we’ll create a simple test plan. We'll...

View Article


Image may be NSFW.
Clik here to view.

Validate String as Filename in Java

1. Overview In this tutorial, we'll discuss different ways to validate if a given String has a valid filename for the OS, using Java. We want to check the value against restricted characters or length...

View Article

Image may be NSFW.
Clik here to view.

Spring @EnableWebSecurity vs. @EnableGlobalMethodSecurity

1. Overview We may wish to apply multiple security filters within the different paths of our Spring Boot applications. In this tutorial, we'll take a look at two approaches to customizing our security...

View Article

Image may be NSFW.
Clik here to view.

Spring Data with ArangoDB

1. Introduction In this tutorial, we'll learn how to work with the Spring Data module and ArangoDB database. ArangoDB is a free and open-source multi-model database system. It supports key-value,...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 399

1. Spring and Java >> What are they building—and why? 6 questions for the top Java architects [blogs.oracle.com] The Java architects talking about its vibrance, prioritizing language features,...

View Article

Image may be NSFW.
Clik here to view.

Running a Single Test or Method With Maven

1. Overview Usually, we execute tests during a Maven build using the Maven surefire plugin. This tutorial will explore how to use this plugin to run a single test class or test method. 2. Introduction...

View Article

Image may be NSFW.
Clik here to view.

Change the Default Location of the Log4j2 Configuration File in Spring Boot

1. Overview In our previous tutorial on Logging in Spring Boot, we showed how to use Log4j2 in Spring Boot. In this short tutorial, we'll learn how to change the default location of the Log4j2...

View Article


Image may be NSFW.
Clik here to view.

Context Path vs. Servlet Path in Spring

1. Introduction DispatcherServlet plays a significant role in Spring applications and provides a single entry point for the application. Whereas the context path defines the URL that the end-user will...

View Article


Image may be NSFW.
Clik here to view.

Deploying a Java War in a Docker Container

1. Overview In this tutorial, we'll learn to deploy a Java WAR file inside a Docker container. We'll deploy the WAR file on Apache Tomcat, a free and open-source web server that is widely used in the...

View Article

Image may be NSFW.
Clik here to view.

Display Custom Items in JavaFX ListView

1. Introduction JavaFX is a powerful tool designed to build application UI for different platforms. It provides not only UI components but different useful tools, such as properties and observable...

View Article

Image may be NSFW.
Clik here to view.

Run JUnit Test Cases From the Command Line

1. Overview In this tutorial, we'll understand how to run JUnit 5 tests directly from the command line. 2. Test Scenarios Previously, we've covered how to run a JUnit test programmatically. For our...

View Article

Image may be NSFW.
Clik here to view.

Cassandra Partition Key, Composite Key, and Clustering Key

1. Overview Data distribution and data modeling in the Cassandra NoSQL database are different from those in a traditional relational database. In this article, we'll learn how a partition key,...

View Article


Image may be NSFW.
Clik here to view.

How to Check Field Existence in MongoDB?

1. Overview In this short tutorial, we'll see how to check field existence in MongoDB.  First, we'll create a simple Mongo database and sample collection. Then, we'll put dummy data in it to use later...

View Article

Image may be NSFW.
Clik here to view.

Custom Serializers in Apache Kafka

1. Introduction During the transmission of messages in Apache Kafka, the client and server agree on the use of a common syntactic format. Apache Kafka brings default converters (such as String and...

View Article


Image may be NSFW.
Clik here to view.

Gradle Offline Mode

1. Overview Gradle is the build tool of choice for millions of developers around the globe and is the official build tool for Android applications. We usually use Gradle to download dependencies from...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 400

We're hitting issue 400 – a really cool milestone along the way. Hope the Java Weekly has been an interesting read over the years Let's jump right in. 1. Spring and Java >> Micronaut Framework 3...

View Article


Image may be NSFW.
Clik here to view.

The DTO Pattern (Data Transfer Object)

1. Overview In this tutorial, we'll discuss the DTO pattern, what it is, how, and when to use them. At the end of it, let's hope we'll know how to use it properly. 2. The Pattern DTOs or Data Transfer...

View Article

Image may be NSFW.
Clik here to view.

Handling Exceptions in Project Reactor

1. Overview In this tutorial, we'll look at several ways to handle exceptions in Project Reactor. Operators introduced in the code examples are defined in both the Mono and Flux classes. However, we'll...

View Article

Image may be NSFW.
Clik here to view.

Configuring Kafka SSL Using Spring Boot

1. Introduction In this tutorial, we'll cover the basic setup for connecting a Spring Boot client to an Apache Kafka broker using SSL authentication. Secure Sockets Layer (SSL) has actually been...

View Article
Browsing all 3566 articles
Browse latest View live


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