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

Image may be NSFW.
Clik here to view.

A Quick Look at R2DBC

1. Introduction R2DBC (Reactive Relational Database Connectivity) is an effort presented by Pivotal during Spring One Platform 2018. It intends to create a reactive API to SQL databases. In other...

View Article


Image may be NSFW.
Clik here to view.

The Proxy Pattern in Java

1. Overview The Proxy pattern allows us to create an intermediary that acts as an interface to another resource, while also hiding the underlying complexity of the component. 2. Proxy Pattern Example...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 290

Here we go… 1. Spring and Java >> Java InfoQ Trends Report – July 2019 [infoq.com] An overview of current trends in the adoptions of technologies within the Java ecosystem, according to InfoQ....

View Article

Image may be NSFW.
Clik here to view.

JUnit 5 TestWatcher API

1. Overview When unit testing, we may, periodically, wish to process the results of our test method executions. In this quick tutorial, we’ll take a look at how we can accomplish this using the...

View Article

Image may be NSFW.
Clik here to view.

Advanced Quasar Usage for Kotlin

1. Introduction We recently looked at Quasar, which gives us tools to make asynchronous programming more accessible and more efficient. We’ve seen the basics of what we can do with it, allowing for...

View Article


Image may be NSFW.
Clik here to view.

Introduction to Morphia – Java ODM for MongoDB

1. Overview In this tutorial, we’ll understand how to use Morphia, an Object Document Mapper (ODM) for MongoDB in Java. In the process, we’ll also understand what is an ODM and how it facilitates...

View Article

Image may be NSFW.
Clik here to view.

Mocking a Void Method with EasyMock

1. Overview Mocking frameworks are used to mock interaction with dependencies so as to test our classes in isolation. Typically, we mock the dependencies to return the various possible values. This...

View Article

Image may be NSFW.
Clik here to view.

Get the Current Working Directory in Java

1. Overview It’s an easy task to get the current working directory in Java, but unfortunately, there’s no direct API available in the JDK to do this. In this tutorial, we’ll learn how to get the...

View Article


Image may be NSFW.
Clik here to view.

Transferring a File Through SFTP in Java

1. Overview In this tutorial, we’ll discuss how to upload and download files from a remote server using SFTP in Java. We’ll use three different libraries: JSch, SSHJ, and Apache Commons VFS. 2. Using...

View Article


Image may be NSFW.
Clik here to view.

Concatenate Strings with Groovy

1. Overview In this tutorial, we’ll look at several ways to concatenate Strings using Groovy. Note that a Groovy online interpreter comes in handy here. We’ll start by defining a numOfWonder variable,...

View Article

Image may be NSFW.
Clik here to view.

@DynamicUpdate with Spring Data JPA

1. Overview When we use Spring Data JPA with Hibernate, we can use the additional features of Hibernate as well. @DynamicUpdate is one such feature. @DynamicUpdate is a class-level annotation that can...

View Article

Image may be NSFW.
Clik here to view.

Spring WebClient vs. RestTemplate

1. Introduction In this tutorial, we’re going to compare two of Spring’s web client implementations – RestTemplate and new Spring 5’s reactive alternative WebClient. 2. Blocking vs. Non-Blocking Client...

View Article

Image may be NSFW.
Clik here to view.

Looping Diagonally Through a 2d Java Array

1. Overview In this tutorial, we will see how to loop diagonally through a two-dimensional array. The solution that we provide can be used for a square two-dimensional array of any size. 2....

View Article


Image may be NSFW.
Clik here to view.

Checking If an Array Is Sorted in Java

1. Overview In this tutorial, we’ll see different ways to check if an array is sorted. Before starting, though, it’d be interesting to check how to sort arrays in Java. 2. With a Loop One way to check...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 291

Here we go… 1. Spring and Java >> Deploying Spring Boot app as WAR [vojtechruzicka.com] Even if you must deploy to a traditional app server, you can still build your app as a WAR without losing...

View Article


Image may be NSFW.
Clik here to view.

Embedded Redis Server with Spring Boot Test

1. Overview Spring Data Redis provides an easy way to integrate with Redis instances. However, in some cases, it’s more convenient to use an embedded server than to create an environment with a real...

View Article

Image may be NSFW.
Clik here to view.

Checking if a URL Exists in Java

1. Overview In this tutorial, we’ll be looking at how to check if a URL exists with an example in Java using the GET and HEAD HTTP methods. 2. URL Existence There can be situations in programming when...

View Article


Image may be NSFW.
Clik here to view.

Using Spring Boot Application as a Dependency

1. Overview In this tutorial, we’ll see how to use a Spring Boot application as a dependency of another project. 2. Spring Boot Packaging The Spring Boot Maven and Gradle plugins both package our...

View Article

Image may be NSFW.
Clik here to view.

String toLowerCase and toUpperCase Methods in Java

1. Overview In this tutorial, we’ll cover the toUpperCase and toLowerCase methods included in the Java String class. We’ll start by creating a String called name: String name = "John Doe"; 2. Convert...

View Article

Image may be NSFW.
Clik here to view.

Spring Request Parameters with Thymeleaf

1. Introduction In our article Introduction to Using Thymeleaf in Spring, we saw how to bind user input to objects. We used th:object and th:field in the Thymeleaf template and @ModelAttribute in the...

View Article
Browsing all 4535 articles
Browse latest View live


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