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

Image may be NSFW.
Clik here to view.

Guide to JDeferred

1. Overview JDeferred is a small Java library (also supports Groovy) used for implementing asynchronous topology without writing boilerplate code. This framework is inspired by the Jquery’s...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 193

Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Java to Move to 6-Monthly Release Cadence [infoq.com] Moving forward, Java will be released twice a year. This...

View Article


Image may be NSFW.
Clik here to view.

How to Iterate Over a Stream With Indices

1. Overview Java 8 Streams are not collections and elements cannot be accessed using their indices, but there are still a few tricks to make this possible. In this short article, we’re going to look...

View Article

Image may be NSFW.
Clik here to view.

Integrating Retrofit with RxJava

1. Overview This article focuses on how to implement a simple RxJava-ready REST Client using Retrofit. We’ll build an example application interacting with the GitHub API – using the standard Retrofit...

View Article

Image may be NSFW.
Clik here to view.

StringBuilder and StringBuffer in Java

1. Overview In this short article, we’re going to look at similarities and differences between StringBuilder and StringBuffer in Java. Simply put, StringBuilder was introduced in Java 1.5 as a...

View Article


Image may be NSFW.
Clik here to view.

New in Spring Security OAuth2 – Verify Claims

1. Overview In this quick tutorial, we’ll work with a Spring Security OAuth2 implementation and we’ll learn how to verify JWT claims using the new JwtClaimsSetVerifier – introduced in Spring Security...

View Article

Image may be NSFW.
Clik here to view.

Introduction to MBassador

1. Overview Simply put, MBassador is a high-performance event bus utilizing the publish-subscribe semantics. Messages are broadcasted to one or more peers without the prior knowledge of how many...

View Article

Image may be NSFW.
Clik here to view.

Example of Vertx and RxJava Integration

1. Overview RxJava is a popular library for creating asynchronous and event-based programs, it takes inspiration from the main ideas brought forward by the Reactive Extensions initiative. Vert.x, a...

View Article


Image may be NSFW.
Clik here to view.

Trampoline – Managing Spring Boot Applications Locally

1. Trampoline Overview Historically, a simple way to run understand the state of our system at runtime was to that manually in a terminal. Best case scenario, we’d automatize everything using scripts....

View Article


Image may be NSFW.
Clik here to view.

Kotlin-allopen and Spring

1. Overview In Kotlin, all classes are final by default which, beyond its clear advantages, can be problematic in Spring applications. Simply put, some areas in Spring only work with non-final...

View Article

Image may be NSFW.
Clik here to view.

Number of Digits in an Integer in Java

1. Introduction In this quick tutorial, we’ll explore different ways of getting the number of digits in an Integer in Java. We’ll also analyze those different methods and will figure out which...

View Article

Image may be NSFW.
Clik here to view.

Test a Linked List for Cyclicity

1. Introduction A singly linked list is a sequence of connected nodes ending with a null reference. However, in some scenarios, the last node might point at a previous node – effectively creating a...

View Article

Image may be NSFW.
Clik here to view.

Introduction to JCache

1. Overview Simply put, JCache is the standard caching API for Java. In this tutorial, we’re going to see what JCache is and how we can use it. 2. Maven Dependencies To use JCache, we need to add the...

View Article


Image may be NSFW.
Clik here to view.

Introduction to RxJava

1. Overview In this article, we’re going to focus on using Reactive Extensions (Rx) in Java to compose and consume sequences of data. At a glance, the API may look similar to Java 8 Streams, but in...

View Article

Image may be NSFW.
Clik here to view.

Introduction to Retrofit

1. Overview Retrofit is a type-safe HTTP client for Android and Java – developed by Square (Dagger, Okhttp). In this article, we’re going to explain how to use Retrofit, with a focus on its most...

View Article


Image may be NSFW.
Clik here to view.

Generate Spring Boot Project with Swagger

1. Introduction In this article, we’ll use the Swagger CodeGen project to generate a REST client from an OpenAPI/Swagger spec file. Also, we’ll create a Spring Boot project, where we’ll use generated...

View Article

Image may be NSFW.
Clik here to view.

The RequestBody and ResponseBody Annotations in Spring

1. Introduction In this quick article, we provide a concise overview of the Spring @RequestBody and @ResponseBody annotations. 2. @RequestBody Simply put, the @RequestBody annotation maps the...

View Article


Image may be NSFW.
Clik here to view.

Compact Strings in Java 9

1. Overview Strings in Java are internally represented by a char[] containing the characters of the String. And, every char is made up of 2 bytes because Java internally uses UTF-16. For instance, if...

View Article

Image may be NSFW.
Clik here to view.

RxJava and Error Handling

1. Introduction In this article, we’ll take a look at how to handle exceptions and errors using RxJava. First, keep in mind that the Observable typically does not throw exceptions. Instead, by...

View Article

Image may be NSFW.
Clik here to view.

Apache Commons IO

1. Overview The Apache Commons project was created to provide developers with a set of common libraries that they can use in their day-to-day code. In this tutorial, we’ll explore some of the key...

View Article
Browsing all 3610 articles
Browse latest View live


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