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

Image may be NSFW.
Clik here to view.

Detecting Compromised Passwords Using Spring Security

1. Overview When building web applications that deal with sensitive data, it’s important to ensure the security of user passwords. One important aspect of password security is checking whether a...

View Article


Image may be NSFW.
Clik here to view.

Convert int to Unsigned byte in Java

1. Introduction In Java, the byte type is a signed 8-bit integer. This means it can hold values from -128 to 127. However, there are situations where we might need to work with bytes as if they were...

View Article


Image may be NSFW.
Clik here to view.

Properties in BeanFactoryPostProcessor

1. Overview In Spring, properties can be injected directly into our beans using the @Value annotation, accessed through the Environment abstraction, or be bound to structured objects through...

View Article

Image may be NSFW.
Clik here to view.

Find the Index of the Largest Value in an Array

1. Overview When working with arrays in Java, one of the everyday tasks we might encounter is finding the index of the largest value in an array. In this quick tutorial, we’ll walk through several...

View Article

Image may be NSFW.
Clik here to view.

Split a String Based on the Last Occurrence of a Character

1. Overview String manipulation is a crucial skill in Java programming. One common task is splitting a String based on the last occurrence of a specific character. In this quick tutorial, we’ll explore...

View Article


Image may be NSFW.
Clik here to view.

Find the Closest Number to Zero in a Java Array

1. Overview In this tutorial, we’ll delve into the problem of finding the closest number to zero within a Java array. For example, given the array, [1, -3, 2, -2, 4], the number closest to zero is 1....

View Article

Image may be NSFW.
Clik here to view.

Fixing the “Could Not Determine Recommended JdbcType for Class” Error in JPA

1. Introduction In this tutorial, we’ll explore the causes of the “could not determine recommended JdbcType for class” error in Hibernate and discuss how to resolve it. 2. Common Causes When we...

View Article

Image may be NSFW.
Clik here to view.

How to Pass JVM Arguments via Maven

1. Overview In this tutorial, we’ll run Java code through Maven with JVM arguments. We’ll explore how to apply those arguments to the build globally and then focus on applying them to specific Maven...

View Article


Image may be NSFW.
Clik here to view.

Java Enums, JPA and PostgreSQL Enums

1. Introduction In this tutorial, we’ll explore the concepts of Java enums, JPA, and PostgreSQL enums, and learn how to use them together to create a seamless mapping between Java enums and PostgreSQL...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 547

1. Spring and Java >> Debugger.godMode() – Hacking a JVM application with the debugger [foojay.io] Using a debugger to find out how an application works under the hood. >> Hibernate WITH...

View Article

Image may be NSFW.
Clik here to view.

Finding the Max Value in Spring Data JPA

1. Introduction When using Spring Data JPA, finding specific values in our database is a common task. One such task is finding the maximum value in a particular column. In this tutorial, we’ll explore...

View Article

Image may be NSFW.
Clik here to view.

How to Delay a Stubbed Method Response With Mockito

1. Introduction Mockito allows developers to stub methods to return specific values or perform certain actions. In some test scenarios, we may need to introduce a delay in the response of a stubbed...

View Article

Image may be NSFW.
Clik here to view.

HTTP Request and Response Logging Using Logbook in Spring

1. Overview HTTP API requests are part of most applications now. Logbook is an extensible Java library to enable complete request and response logging for different client and server-side technologies....

View Article


Image may be NSFW.
Clik here to view.

Vertical Slice Architecture

1. Overview In this tutorial, we’ll learn about Vertical Slice Architecture and how it attempts to solve the issues associated with layered designs. We’ll discuss structuring the code by business...

View Article

Image may be NSFW.
Clik here to view.

Store File or byte[] as SQL Blob in Java (Store and Load)

1. Overview Files such as images, audio, video, documents, etc. can be stored in a database as Binary Large Object (BLOB). A BLOB is a SQL data type that can store large binary data as a single entity....

View Article


Image may be NSFW.
Clik here to view.

Introduction to TigerBeetle Transactions Database

1. Introduction In this tutorial, we’ll explore the TigerBeetle database engine and learn how we can use it to build a fault-tolerant and high-performance application. 2. Financial Transactions in a...

View Article

Image may be NSFW.
Clik here to view.

Define Multiple Repositories With Maven

1. Overview Apache Maven lets us define a repository or a central place where we store and retrieve project artifacts. Sometimes, we need to define multiple repositories, especially when our project...

View Article


Image may be NSFW.
Clik here to view.

Check if a Variable Is Null Using Hamcrest

1. Overview When we write unit tests in Java, particularly with the JUnit framework, we often need to verify that certain variables are null or not null. Hamcrest, a popular library of Matchers for...

View Article

Image may be NSFW.
Clik here to view.

Difference Between hasItems(), contains(), and containsInAnyOrder() in Hamcrest

1. Introduction Hamcrest is a popular framework for writing matcher objects in Java, providing an expressive way to define match conditions. Matchers like hasItems(), contains(), and...

View Article

Image may be NSFW.
Clik here to view.

Arithmetic Operations on Arbitrary-Length Binary Integers in Java

1. Overview In digital signal processing, operations are often performed on the binary representations of signals. In computer graphics, bit manipulation is critical for color, pixel operations, and...

View Article
Browsing all 4561 articles
Browse latest View live


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