HttpClient Basic Authentication 1. Overview This tutorial will illustrate how to configure Basic Authentication on the Apache HttpClient 4. If you want to dig deeper and learn other cool things you can do with the HttpClient – head on over to the main HttpClient tutorial. Further reading: HttpAsyncClient Tutorial HttpAsyncClient… Continue Reading httpclient-4-basic-authentication

Immutable Map Implementations in Java 1. Overview It is sometimes preferable to disallow modifications to the java.util.Map such as sharing read-only data across threads. For this purpose, we can use either an Unmodifiable Map or an Immutable Map. In this quick tutorial, we’ll see what’s the difference between them. Then, we’ll present… Continue Reading java-immutable-maps

Enabling Transaction Locks in Spring Data JPA 1. Overview In this quick tutorial, we’ll discuss enabling transaction locks in Spring Data JPA for custom query methods and predefined repository CRUD methods. We will also have a look at different lock types and setting transaction lock timeouts. 2. Lock Types JPA… Continue Reading java-jpa-transaction-locks

Debugging the Spring MVC 404 “No mapping found for HTTP request” Error 1. Introduction Spring MVC is a traditional application built using the Front Controller Pattern. DispatcherServlet, which acts as the front controller, is responsible for routing and request processing. As with any web application or website, Spring MVC returns… Continue Reading spring-mvc-404-error