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

Image may be NSFW.
Clik here to view.

Spring Cache – Creating a Custom KeyGenerator

1. Overview In this quick tutorial, we’re going to illustrate how to create a custom key generator with Spring Cache. For an introduction to the above module, please refer to this article. 2....

View Article


Image may be NSFW.
Clik here to view.

Run an Ant Task with Maven

1. Introduction Maven and Ant are both well-known build automation tools for Java. Although most of the time we’ll only use one of these, there are cases when using the two together makes sense. A...

View Article


Image may be NSFW.
Clik here to view.

A Guide To Logback

1. Overview Logback is one of the most widely used logging frameworks in the Java Community. It’s a replacement for its predecessor, Log4j. Logback offers a faster implementation than Log4j, provides...

View Article

Image may be NSFW.
Clik here to view.

Pass-By-Value as a Parameter Passing Mechanism in Java

1. Introduction The two most prevalent modes of passing arguments to methods are “passing-by-value” and “passing-by-reference”. Different programming languages use these concepts in different ways. As...

View Article

Image may be NSFW.
Clik here to view.

The Command Pattern in Java

1. Overview The command pattern is a behavioral design pattern and is part of the GoF‘s formal list of design patterns. Simply put, the pattern intends to encapsulate in an object all the data...

View Article


Image may be NSFW.
Clik here to view.

Spring Web Contexts

1. Introduction When using Spring in a web application, we have several options for organizing the application contexts that wire it all up. In this article, we’re going to analyze and explain the...

View Article

Image may be NSFW.
Clik here to view.

Lightweight Ethereum Clients Using Web3j

1. Introduction This tutorial introduces Web3j, a Java implementation of the popular Web3 abstraction library. Web3j is used to interact with the Ethereum network by connecting to Ethereum nodes using...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 228

Here we go… 1. Spring and Java >> Check the quality of Kotlin code [blog.frankel.ch] Finally, static code analyzers for Kotlin are emerging – let’s hope they will be production-ready soon....

View Article


Image may be NSFW.
Clik here to view.

The Tomcat java.net.BindException: Address Already in Use Error in Java

1. Overview In this quick tutorial, we’ll look at what causes the common java.net.BindingException Error: Address already in Use error and how we can deal with it. 2. When Does the Error Occur? As we...

View Article


Image may be NSFW.
Clik here to view.

Lambda Expressions in Kotlin

1. Overview In this article, we’re going to explore Lambdas in the Kotlin language. Keep in mind that lambdas aren’t unique to Kotlin and have been around for many years in many other languages....

View Article

Image may be NSFW.
Clik here to view.

Guide to DeferredResult in Spring

1. Overview In this tutorial, we’ll look at how we can use the DeferredResult class in Spring MVC to perform asynchronous request processing. Asynchronous support was introduced in Servlet 3.0 and,...

View Article

Image may be NSFW.
Clik here to view.

Composite Design pattern in Java

1. Introduction In this quick tutorial, we’ll introduce the composite design pattern in Java. We’re going to describe the structure and the purpose of its use. 2. The Structure The composite pattern...

View Article

Image may be NSFW.
Clik here to view.

Spring Custom Property Editor

1. Introduction Simply put, Spring uses property editors heavily for managing conversion between String values and custom Object types; this is based on Java Beans PropertyEditor. In this tutorial,...

View Article


Image may be NSFW.
Clik here to view.

Check If a String Is Numeric in Java

1. Introduction Oftentimes while operating upon Strings, we need to figure out whether a String is a valid number or not. In this tutorial, we’ll explore multiple ways to detect if the given String is...

View Article

Image may be NSFW.
Clik here to view.

Hamcrest Common Core Matchers

1. Overview In this quick tutorial, we’ll explore the CoreMatchers class from the popular Hamcrest framework for writing simple and more expressive test cases. The idea is to make assert statements...

View Article


Image may be NSFW.
Clik here to view.

Creating REST Microservices with Javalin

1. Introduction Javalin is a lightweight web framework written for Java and Kotlin. It’s written on top of the Jetty web server, which makes it highly performant. Javalin is modeled closely off of...

View Article

Image may be NSFW.
Clik here to view.

Spring Boot Exit Codes

1. Overview Every application returns an exit code on exit; this code can be any integer value including negative values. In this quick tutorial, we’re going to find out how we can return exit codes...

View Article


Image may be NSFW.
Clik here to view.

DOM parsing with Xerces

1. Overview In this tutorial, we’ll discuss how to parse DOM with Apache Xerces – a mature and established library for parsing/manipulating XML. There are multiple options to parse an XML document;...

View Article

Image may be NSFW.
Clik here to view.

Writing Specifications with Kotlin and Spek

1. Introduction Specification Testing frameworks are complementary to Unit Testing frameworks for testing our applications. In this tutorial, we’ll introduce the Spek framework – a Specification...

View Article

Image may be NSFW.
Clik here to view.

Guide to the Favicon in Spring Boot

1. Overview A favicon is a small website icon displayed in a browser, usually next to an address. Often we don’t want to settle for the default ones provided by various frameworks such a Spring Boot....

View Article
Browsing all 3565 articles
Browse latest View live


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