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

Image may be NSFW.
Clik here to view.

Remove Emojis from a Java String

1. Overview Emojis are becoming more popular in text messaging these days – sometimes we need to clean our text from them and other symbols. In this tutorial, we’ll discuss different ways to remove...

View Article


Image may be NSFW.
Clik here to view.

Calculate the Distance Between Two Points in Java

1. Overview In this quick tutorial, we’ll show how to calculate the distance between two points in Java. 2. The Math Formula of the Distance Let’s say we have two points on a plane: the first point A...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 245

Here we go… 1. Spring and Java >> Bootiful GCP: Integration with Google Cloud Pub/Sub (4/8) [spring.io] >> Bootiful GCP: Runtime Configuration with Spring Cloud GCP Runtime Config (5/8)...

View Article

Image may be NSFW.
Clik here to view.

An Intro to Vault

1. Overview In this tutorial, we’ll explore Hashicorp’s Vault – a popular tool used to securely manage sensitive information in modern application architectures. The main topics we’ll cover, include:...

View Article

Image may be NSFW.
Clik here to view.

How to Disable Console Logging in Spring Boot

1. Overview Usually, console logs give us the opportunity to debug our system in an easy and intuitive way. Nevertheless, there are occasions when we don’t want to enable this feature in our system....

View Article


Image may be NSFW.
Clik here to view.

Convert java.util.Date to String

1. Overview In this tutorial, we’ll show how we can convert Date objects to String objects in Java. To do so, we’ll work with the older java.util.Date type as well as with the new Date/Time API...

View Article

Image may be NSFW.
Clik here to view.

Server-Sent Events in Spring

1. Overview In this tutorial, we’ll see how we can implement Server-Sent-Events-based APIs with Spring. Simply put, Server-Sent-Events, or SSE for short, is an HTTP standard that allows a web...

View Article

Image may be NSFW.
Clik here to view.

DDD Aggregates and @DomainEvents

1. Overview In this tutorial, we’ll explain how to use @DomainEvents annotation and AbstractAggregateRoot class to conveniently publish and handle domain events produced by aggregate – one of the key...

View Article


Image may be NSFW.
Clik here to view.

Permgen vs Metaspace in Java

1. Introduction In this quick tutorial, we’re going to examine the differences between the PermGen and Metaspace memory regions in the Java environment. It’s important to keep in mind that, starting...

View Article


Image may be NSFW.
Clik here to view.

Spring WebSockets: Build an User Chat

1. Introduction In this tutorial, we’ll describe how to use Spring WebSockets to send STOMP messages to a single user. That’s important because we sometimes don’t want to broadcast every message to...

View Article

Image may be NSFW.
Clik here to view.

Guide to Java EE JTA

1. Overview Java Transaction API, more commonly known as JTA, is an API for managing transactions in Java. It allows us to start, commit and rollback transactions in a resource-agnostic way. The true...

View Article

Image may be NSFW.
Clik here to view.

Spring Vault

1. Overview HashiCorp’s Vault is a tool to store and secure secrets. Vault, in general, solves the software development security problem of how to manage secrets. To learn more about it, check out our...

View Article

Image may be NSFW.
Clik here to view.

OAuth2 – @EnableResourceServer vs @EnableOAuth2Sso

1. Overview In this tutorial, we’re going to talk about the @EnableResourceServer and @EnableOAuth2Sso annotations in Spring Security. We’ll begin by explaining the differences between an OAuth2...

View Article


Image may be NSFW.
Clik here to view.

Using Lombok’s @Getter for Boolean Fields

1. Introduction Project Lombok is a popular library for reducing Java boilerplate. In this tutorial, we’ll take a look at how Lombok’s @Getter annotation works on boolean fields to remove the need to...

View Article

Image may be NSFW.
Clik here to view.

Introduction to Kovenant Library for Kotlin

1. Introduction Promises are a fantastic way to manage asynchronous code, like where we need a response but are willing to wait for it to be available. In this tutorial, we’re going to see how...

View Article


Image may be NSFW.
Clik here to view.

Spring Security – Whitelist IP Range

1. Overview In this tutorial, we’ll discuss how to whitelist IP ranges in Spring Security. We’ll take a look at both Java and XML configurations. We’ll also see how to whitelist IP range using a...

View Article

Image may be NSFW.
Clik here to view.

Ratpack HTTP Client

1. Introduction Over the last several years, we’ve witnessed the rise of the functional and reactive way of creating applications in Java. Ratpack offers a way of creating HTTP applications along the...

View Article


Image may be NSFW.
Clik here to view.

A Guide to OptaPlanner

1. Introduction to OptaPlanner In this guide, we look at a Java constraint satisfaction solver called OptaPlanner. OptaPlanner solves planning problems using a suite of algorithms with minimal setup....

View Article

Image may be NSFW.
Clik here to view.

Get the Key for a Value from a Java Map

1. Introduction In this quick tutorial, we’re going to demonstrate three different approaches for retrieving the key from a map for a given value. We’ll also discuss the positives and negatives of the...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 246

Here we go… 1. Spring and Java >> Bootiful GCP: Supporting Observability with Spring Cloud GCP Stackdriver Trace (6/8) [spring.io] >> Bootiful GCP: Use Spring Cloud GCP to Connect to Other...

View Article
Browsing all 4535 articles
Browse latest View live


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