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

Image may be NSFW.
Clik here to view.

Handling NoClassDefFoundError for JAXBException in Java 9

1. Introduction For anyone who has tried upgrading to Java 9, they have likely experienced some sort of NoClassDefFoundError when compiling code that previously worked in earlier versions of Java. In...

View Article


Image may be NSFW.
Clik here to view.

How to Store Duplicate Keys in a Map in Java?

1. Overview In this tutorial, we’re going to explore the available options for handling a Map with duplicate keys or, in other words, a Map which allows storing multiple values for a single key. 2....

View Article


Image may be NSFW.
Clik here to view.

How to Change the Default Port in Spring Boot

1. Introduction Spring Boot provides sensible defaults for many configuration properties. Still, we sometimes need to customize these with our case-specific values. A common use case is changing the...

View Article

Image may be NSFW.
Clik here to view.

A Quick Example of Spring Websockets’ @SendToUser Annotation

1. Overview In this quick tutorial, we’re going to illustrate how to send a message to a specific session or particular user using Spring WebSockets. For an introduction to the above module, please...

View Article

Image may be NSFW.
Clik here to view.

Using Java Assertions

1. Introduction The Java assert keyword allows developers to quickly verify certain assumptions or state of a program. In this article, we’ll take a look at how to use the Java assert keyword. 2....

View Article


Image may be NSFW.
Clik here to view.

Projections and Excerpts in Spring Data REST

1. Overview  In this article – we’ll explore Spring Data REST’s concepts of projections and excerpts. We’ll learn how to use projections to create custom views of our models and how to use excerpts as...

View Article

Image may be NSFW.
Clik here to view.

Running Spring Boot Applications With Minikube

1. Overview In this previous article, we covered a theoretical introduction about Kubernetes. In this tutorial, we’ll discuss how to deploy a Spring Boot application on a local Kubernetes environment,...

View Article

Image may be NSFW.
Clik here to view.

Spring Data JPA @Query

1. Overview Spring Data provides many ways to define a query that we can execute. One of these is the @Query annotation. In this tutorial, we’ll demonstrate how to use the @Query annotation in Spring...

View Article


Image may be NSFW.
Clik here to view.

BeanNameAware and BeanFactoryAware Interfaces in Spring

1. Overview In this quick tutorial, we’re going to focus on the BeanNameAware and BeanFactoryAware interfaces, in the Spring Framework. We’ll describe each interface separately with the pros and cons...

View Article


Image may be NSFW.
Clik here to view.

Java Streams vs Vavr Streams

1. Introduction In this article, we’ll be looking at how Stream implementations differ in Java and Vavr. This article assumes familiarity with the basics of both Java Stream API and the Vavr library....

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 227

Here we go… 1. Spring and Java >> Monitor and troubleshoot Java applications and services with Datadog Optimize performance with end-to-end tracing and out-of-the-box support for popular Java...

View Article

Image may be NSFW.
Clik here to view.

Java Service Provider Interface

1. Overview Java 6 has introduced a feature for discovering and loading implementations matching a given interface: Service Provider Interface (SPI). In this tutorial, we’ll introduce the components...

View Article

Image may be NSFW.
Clik here to view.

Guide to Java Clock Class

1. Overview In this tutorial, we’re going to look into the Java Clock class from the java.time package. We’ll explain what the Clock class is and how we can use it. 2. The Clock Class Clock was added...

View Article


Image may be NSFW.
Clik here to view.

Introduction to AutoFactory

1. Introduction In this tutorial, we’ll give a brief introduction to AutoFactory, from by Google. This is a source-level code generator that helps generate factories. 2. Maven Setup Before we begin,...

View Article

Image may be NSFW.
Clik here to view.

Quick Guide to the Spring @Order Annotation

1. Overview In this tutorial, we’re going to learn about Spring’s @Order annotation. The @Order annotation defines the sorting order of an annotated component or bean. It has an optional value...

View Article


Image may be NSFW.
Clik here to view.

Managing Amazon SQS Queues in Java

1. Overview In this tutorial, we’ll explore how to use Amazon’s SQS (Simple Queue Service) using the Java SDK. 2. Prerequisites The Maven dependencies, AWS account settings, and client connection...

View Article

Image may be NSFW.
Clik here to view.

Java Streams

Stream Basics >> The Java 8 Stream API Tutorial >> Introduction to Java 8 Streams >> Java 8 Stream findFirst() vs. findAny() >> Functional Interfaces in Java 8 Stream Collectors...

View Article


Image may be NSFW.
Clik here to view.

Java Concurrency

Java Concurrency Basics >> Overview of the java.util.concurrent >> Guide to the Synchronized Keyword in Java >> Guide to the Volatile Keyword in Java >> Java – Difference...

View Article

Image may be NSFW.
Clik here to view.

All About String in Java

String Basics: >> Java – Generate Random String >> How to Remove the Last Character of a String? >> Java – Count Occurrences of a Char in a String >> Check if a String is a...

View Article

Image may be NSFW.
Clik here to view.

Writing to a File in Kotlin

1. Overview In this quick tutorial, we’ll learn about various ways of writing content into a file using Kotlin extension methods – available in its standard library. 2. Kotlin File Extensions Kotlin...

View Article
Browsing all 3610 articles
Browse latest View live


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