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

Spring Boot and Togglz Aspect

1. Overview In this tutorial, we’re going to take a look at how the Togglz library can be used with a Spring Boot application. 2. Togglz The Togglz library provides an implementation of the Feature...

View Article


Image may be NSFW.
Clik here to view.

Quick Guide to Spring Roo

1. Overview Spring Roo is a Rapid Application Development (RAD) tool that aims to deliver fast, and instant results focused on Spring web applications and newer Spring technologies. It allows us to...

View Article


Image may be NSFW.
Clik here to view.

Java Web Weekly, Issue 175

Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> IBM and Red Hat to Vote “No” on Java Modules (Jigsaw) [infoq.com] Java 9 is scheduled to be released 3 months...

View Article

Image may be NSFW.
Clik here to view.

Introduction to JDBC

1. Overview In this article, we’re going to take a look at JDBC (Java Database Connectivity) which is an API for connecting and executing queries on a database. JDBC can work with any database as long...

View Article

Image may be NSFW.
Clik here to view.

Guide to CopyOnWriteArrayList

1. Overview In this quick article, we’ll be looking at the CopyOnWriteArrayList from the java.util.concurrent package. This is a very useful construct in the multi-threaded programs – when we want to...

View Article


Image may be NSFW.
Clik here to view.

Angular 4 Upgrade for Spring Security OAuth

1. Overview In this quick tutorial, we’re going to upgrade our existing Angular application described here, to use Angular 4 instead of AngularJS. 2. Setup Angular4 First, we’ll use Angular CLI to...

View Article

Period and Duration in Java

1. Overview In this quick tutorial, we’re going to take a look at two new classes for working with dates introduced in Java 8: Period and Duration. Both classes can be used to represent an amount of...

View Article

Converting a Stack Trace to a String in Java

1. Introduction When dealing with exceptions in Java, we’re frequently logging or simply displaying stack traces. However, sometimes, we don’t want just to print the stack trace, we might need to...

View Article


Guide to Java Data Objects

1. Overview The Java Data Objects is an API designed for persisting object-oriented data into any database and provide a user-friendly query language using the Java syntax. In this article, we are...

View Article


Call Methods at Runtime Using Java Reflection

1. Overview In this short article, we’ll take a quick look at how to invoke methods at runtime using the Java Reflection API. 2. Getting Ready Let’s create a simple class which we’ll use for the...

View Article

Guide to the Java Phaser

1. Overview In this article, we will be looking at the Phaser construct from the java.util.concurrent package. It is a very similar construct to the CountDownLatch that allows us to coordinate...

View Article

Image may be NSFW.
Clik here to view.

JHipster with a Microservice Architecture

1. Introduction In this writeup, we’ll explore an interesting example with JHipster – building a simple microservices architecture. We’ll show how to build and deploy all the required pieces, and in...

View Article

A Guide to @RepeatedTest in Junit 5

1. Overview In this quick article, we are going to look at the @RepeatedTest annotation introduced in JUnit 5. It provides us a powerful way to write any test that we want to repeat several times. If...

View Article


Image may be NSFW.
Clik here to view.

Java Web Weekly, Issue 176

Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Concurrency: Java Futures and Kotlin Coroutines [frankel.ch] A comprehensive and practical comparison of...

View Article

Guide to Guava ClassToInstanceMap

1. Overview A ClassToInstanceMap<B> is a special kind of map that associates classes with corresponding instances. It makes sure that all the keys and the values are subtypes of the upper bound...

View Article


Image may be NSFW.
Clik here to view.

Custom Reporting with TestNG

1. Overview In this article, we will discuss generating custom logging and reports using TestNG. TestNG provides its own reporting feature – generating reports in either HTML/XML formats. If tests are...

View Article

Guide to DelayQueue

1. Overview In this article, we’ll be looking at the DelayQueue construct from the java.util.concurrent package. This is a blocking queue that could be used in producer-consumer programs. It has a...

View Article


Count Occurrences of a Char in a String

1. Overview There are many ways to count the number of occurrences of a char in a String in Java. In this quick article, we’ll focus on a few examples of how to count characters, first, with the core...

View Article

Java Double Brace Initialization

1. Overview In this quick tutorial, we’ll show how double braces can be used for creating and initializing objects in a single Java expression. We’ll also look at why this technique can be considered...

View Article

The StackOverflowError in Java

1. Overview StackOverflowError can be annoying for Java developers, as it’s one of the most common runtime errors we can encounter. In this article, we’ll see how this error can occur by looking at a...

View Article
Browsing all 3610 articles
Browse latest View live


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