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

Image may be NSFW.
Clik here to view.

Understanding Detached HEAD in Git

1. Overview It is not very uncommon to come across a mysterious state while working on git. However, one day it is most likely to see “detached HEAD”. In this tutorial, we'll discuss what is a detached...

View Article


Image may be NSFW.
Clik here to view.

Find the IP Address of a Client Connected to a Server

1. Introduction In this quick tutorial, we're going to learn how to find the IP address of a client computer connected to a server. We'll create a simple client-server scenario to allow us to explore...

View Article


Image may be NSFW.
Clik here to view.

Connecting to a Specific Schema in JDBC

1. Introduction In this article, we'll cover the basics of database schemas, why we need them, and how they are useful. After that, we'll focus on practical examples of setting schema in JDBC with...

View Article

Image may be NSFW.
Clik here to view.

Understanding Maven’s “relativePath” Tag for a Parent POM

1. Overview In this tutorial, we'll learn about the Parent POM resolution of Maven. First, we'll discover the default behavior. Then, we'll discuss the possibilities to customize it. 2. Default Parent...

View Article

Image may be NSFW.
Clik here to view.

Enabling Unlimited Strength Cryptography in Java

1. Overview In this tutorial, we'll learn why the Java Cryptography Extension (JCE) unlimited strength policy files are not always enabled by default. Additionally, we'll explain how to check the...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 402

1. Spring and Java >> A Java 17 and Jakarta EE 9 baseline for Spring Framework 6 [spring.io] Moving the Java ecosystem forward – Spring is planning to use Java 17 as the minimum version for...

View Article

Image may be NSFW.
Clik here to view.

Generate a Java Class From JSON

1. Overview In some situations, we need to create Java classes, also called POJOs, using JSON files. This is possible without writing the whole class from scratch using a handy jsonschema2pojo library....

View Article

Image may be NSFW.
Clik here to view.

Guide to mapMulti in Stream API

1. Overview In this tutorial, we'll review the method Stream::mapMulti introduced in Java 16. We'll write simple examples to illustrate how to use it. In particular, we'll see that this method is...

View Article


Image may be NSFW.
Clik here to view.

Performance of System.arraycopy() vs. Arrays.copyOf()

1. Introduction In this tutorial, we will look at the performance of two Java methods: System.arraycopy() and Arrays.copyOf(). First, we'll analyze their implementations. Second, we'll run some...

View Article


Image may be NSFW.
Clik here to view.

Upload a File with WebClient

1. Overview Our applications often have to handle file uploads via an HTTP request. Since Spring 5, we can now make these requests reactive. The added support for Reactive Programming allows us to work...

View Article

Image may be NSFW.
Clik here to view.

Priority of a Thread in Java

1. Introduction In this tutorial, we'll discuss how the Java thread scheduler executes threads on a priority basis. Additionally, we'll cover the types of thread priorities in Java. 2. Types of...

View Article

Image may be NSFW.
Clik here to view.

Joinpoint vs. ProceedingJoinPoint in AspectJ

1. Introduction In this short tutorial, we'll learn about the differences between JoinPoint and ProceedingJoinPoint interfaces in AspectJ. We'll cover it with a brief explanation and code examples. 2....

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 403

1. Spring and Java >> The Arrival of Java 17 [inside.java] Java 17, a new LTS version, is now available – sealed classes, pattern matching, enhanced random numbers, vectorization, foreign memory...

View Article


Image may be NSFW.
Clik here to view.

Different Log4j2 Configurations per Spring Profile

1. Overview In our previous tutorials, Spring Profiles and Logging in Spring Boot, we showed how to activate different profiles and use Log4j2 in Spring. In this short tutorial, we'll learn how to use...

View Article

Image may be NSFW.
Clik here to view.

Get All Running JVM Threads

1. Overview In this short tutorial, we'll learn how to get all running threads in the current JVM, including the threads not started by our class. 2. Use the Thread Class The getAllStackTrace() method...

View Article


Image may be NSFW.
Clik here to view.

Collecting Stream Elements into a List in Java

1. Overview In this tutorial, we'll look at different methods to get a List from a Stream. We'll also discuss the differences among them and when to use which method. 2. Collecting Stream Elements into...

View Article

Image may be NSFW.
Clik here to view.

Connect to Apache Kafka running in Docker

1. Overview Apache Kafka is a very popular event streaming platform that is used with Docker frequently. Often, people experience connection establishment problems with Kafka, especially when the...

View Article


Image may be NSFW.
Clik here to view.

HTML to PDF Using OpenPDF

1. Overview In this quick tutorial, we'll look at using OpenPDF in Java to convert HTML files to PDF formats programmatically. 2. OpenPDF OpenPDF is a free Java library for creating and editing PDF...

View Article

Image may be NSFW.
Clik here to view.

Fixing the “Declared package does not match the expected package” Error

1. Overview In this article, we'll investigate the “Declared package does not match the expected package” error in a java project. We normally expect to put our java files in folders that match the...

View Article

Image may be NSFW.
Clik here to view.

Maven dependencyManagement vs. dependencies Tags

1. Overview In this tutorial, we will review two important Maven tags — dependencyManagement and dependencies. These features are especially useful for multi-module projects. We'll review 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>