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

Image may be NSFW.
Clik here to view.

Using libphonenumber to Validate Phone Numbers

1. Overview In this quick tutorial, we'll see how to use Google's open-source library libphonenumber to validate phone numbers in Java. 2. Maven Dependency First, we'll need to add the dependency for...

View Article


Image may be NSFW.
Clik here to view.

Using JNA to Access Native Dynamic Libraries

1. Overview In this tutorial, we'll see how to use the Java Native Access library (JNA for short) to access native libraries without writing any JNI (Java Native Interface) code. 2. Why JNA? For many...

View Article


Image may be NSFW.
Clik here to view.

Checking if a Java Class is ‘abstract’ Using Reflection

1. Overview In this quick tutorial, we'll discuss how we can check if a class is abstract or not in Java by using the Reflection API. 2. Example Class To demonstrate this, we'll create an...

View Article

Image may be NSFW.
Clik here to view.

Differences Between Netflix Feign and OpenFeign

1. Overview In this tutorial, we're going to describe the differences between Spring Cloud Netflix Feign and Spring Cloud OpenFeign. 2. Feign Feign makes writing web service clients easier by providing...

View Article

Image may be NSFW.
Clik here to view.

Performing Calculations in the Database vs. the Application

1. Overview Often, we find it difficult to decide whether a calculation should be performed in the database (RDBMS) or application code to get good performance along with convenience at the same time....

View Article


Image may be NSFW.
Clik here to view.

Background Jobs in Spring with JobRunr

1. Overview In this tutorial, we're going to look into distributed background job scheduling and processing in Java using JobRunr and have it integrate with Spring. 2. About JobRunr JobRunr is a...

View Article

Image may be NSFW.
Clik here to view.

How to Stop Execution After a Certain Time in Java

1. Overview In this article, we'll learn how we can end a long-running execution after a certain time. We'll explore the various solutions to this problem. Also, we'll cover some of their pitfalls. 2....

View Article

Image may be NSFW.
Clik here to view.

Where Does H2’s Embedded Database Store The Data?

1. Introduction In this article, we'll learn how to configure the Spring Boot application to use the embedded H2 database and then see where H2's embedded database stores the data. H2 database is a...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 354

1. Spring and Java >> Shenandoah in JDK 11 – Interview With Red Hat's Team [infoq.com] Deep insights from Kennke and Shipilev about Shenandoah's history, the interaction with other JVM parts and...

View Article


Image may be NSFW.
Clik here to view.

Difference Between @ComponentScan and @EnableAutoConfiguration in Spring Boot

1. Introduction In this quick tutorial, we'll learn about the differences between @ComponentScan and @EnableAutoConfiguration annotations in the Spring Framework. 2. Spring Annotations Annotations make...

View Article

Image may be NSFW.
Clik here to view.

Creational Design Patterns in Core Java

1. Introduction Design Patterns are common patterns that we use when writing our software. They represent established best practices developed over time. These can then help us to ensure that our code...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 355

1. Spring and Java >> Project Panama and jextract [inside.java] Explore the secure, efficient, and modern native interaction APIs from Project Panama: foreign-Memory Access API and Foreign Linker...

View Article

Image may be NSFW.
Clik here to view.

Detecting If a Spring Transaction Is Active

1. Overview Detecting transactions could be useful for audit purposes or for dealing with a complex code base where good transaction conventions weren't implemented. In this brief tutorial, we'll go...

View Article


Image may be NSFW.
Clik here to view.

Finding a Free Port in Java

1. Overview When starting a socket server in our Java application, the java.net API requires us to specify a free port number to listen on. The port number is required so that the TCP layer can...

View Article

Image may be NSFW.
Clik here to view.

Getting Database URL From JDBC Connection Object

1. Overview In this quick tutorial, we'll discuss how we can get the database URL from a JDBC Connection object. 2. Example Class To demonstrate this, we'll create a DBConfiguration class with a method...

View Article


Image may be NSFW.
Clik here to view.

Apache Spark: Differences between Dataframes, Datasets and RDDs

1. Overview Apache Spark is a fast, distributed data processing system. It does in-memory data processing and uses in-memory caching and optimized execution resulting in fast performance. It provides...

View Article

Image may be NSFW.
Clik here to view.

Guide to Jenkins Parameterized Builds

1. Introduction Jenkins is one of the most popular CI/CD tools in use today. It allows us to automate every aspect of the software lifecycle, from building all the way to deploying. In this tutorial,...

View Article


Image may be NSFW.
Clik here to view.

Object States in Hibernate’s Session

1. Introduction Hibernate is a convenient framework for managing persistent data, but understanding how it works internally can be tricky at times. In this tutorial, we'll learn about object states and...

View Article

Image may be NSFW.
Clik here to view.

Constants in Java: Patterns and Anti-Patterns

1. Introduction In this article, we're going to learn about using constants in Java with a focus on common patterns and anti-patterns. We'll start with some basic conventions for defining constants....

View Article

Image may be NSFW.
Clik here to view.

Performance of removeAll() in a HashSet

1. Overview HashSet is a collection for storing unique elements. In this tutorial, we'll discuss the performance of the removeAll() method in the java.util.HashSet class. 2. HashSet.removeAll() The...

View Article
Browsing all 3605 articles
Browse latest View live