Simulated Annealing: The Traveling Salesman Problem in Java
1. Introduction In this tutorial, we’ll learn about the Simulated Annealing algorithm and we’ll show the example implementation based on the Traveling Salesman Problem (TSP). 2. Simulated Annealing...
View ArticleOAuth2.0 and Dynamic Client Registration
1. Introduction In this tutorial, we are going to prepare a dynamic client registration with the OAuth2.0. The OAuth2.0 is an authorization framework that enables obtaining limited access to user...
View ArticleJava Web Weekly, Issue 156
1. Spring and Java >> No, being wary doesn’t hurt Java. A comment about Java licensing. [eisele.net] >> What we Need is Standardised Non-OSS Licenses [jooq.org] Notes about the...
View ArticleIntegration Patterns With Apache Camel
1. Overview This article will cover some essential enterprise integration patterns (EIPs) supported by Apache Camel. Integration patterns help by providing solutions for standardized ways of...
View ArticleSpring Cloud – Securing Services
1. Overview In the previous article, Spring Cloud – Bootstrapping, we’ve built a basic Spring Cloud application. This article shows how to secure it. We’ll naturally use Spring Security to share...
View ArticleMicrosoft Word Processing in Java with Apache POI
1. Overview Apache POI is a Java library for working with the various file formats based on the Office Open XML standards (OOXML) and Microsoft’s OLE 2 Compound Document format (OLE2). This tutorial...
View ArticleGuide to JAXB
1. Introduction This is an introductory article on JAXB (Java Architecture for XML Binding). First, we’ll show how to convert Java objects to XML and vice-versa, and then we’ll focus on generating...
View ArticleWorking with Images in Java
1. Overview In this tutorial, we are going to take a look at a few available image-processing libraries, and perform simple image processing operation – loading an image and drawing a shape on it....
View ArticleA Guide to Rolling File Appenders
1. Overview While log files often convey useful information, they naturally grow bigger over time, and if allowed to grow indefinitely, their size could become a problem. Logging libraries address...
View ArticleIntro to Inversion Control and Dependency Injection with Spring
1. Overview In this article, we’ll introduce the concepts of IoC (Inversion of Control) and DI (Dependency Injection), and we’ll then take a look at how these are implemented in the Spring framework....
View ArticleThe Java HashMap Under the Hood
1. Overview In this article, we are going to explore the most popular implementation of Map interface from the Java Collections Framework. Before we get started with the implementation, it’s important...
View ArticleGuide to @JsonFormat in Jackson
1. Overview In this article, we try to understand how to use @JsonFormat in Jackson. It is a Jackson annotation that is used to specify how to format fields and/or properties for JSON output....
View ArticleJava Web Weekly, Issue 157
This is the last Java Web Weekly of 2016. Lots to cover in this one so let’s jump right into it. 1. Spring and Java >> Is Gartner’s Report of Java EE’s Demise Greatly Exaggerated? [infoq.com] An...
View ArticleIntroduction to Javaslang
1. Overview In this article, we are going to explore exactly what Javaslang is, why we need it and how to use it in our projects. Javaslang is a functional library for Java 8+ that provides immutable...
View ArticleA Custom Media Type for a Spring REST API
1. Overview In this tutorial, we’re going to take a look at defining custom media types and producing them by Spring REST controller. A good use case for using custom media type is versioning an API....
View ArticleSpring Security Context Propagation with @Async
1. Introduction In this tutorial, we are going to focus on the propagation of the Spring Security principal with @Async. By default, the Spring Security Authentication is bound to a ThreadLocal – so,...
View ArticleBasic Introduction to JMX
1. Introduction The Java Management Extensions (JMX) framework was introduced in Java 1.5 and has found widespread acceptance in the Java developers community since its inception. It provides an...
View ArticleServlet 3 Async Support with Spring MVC and Spring Security
1. Introduction In this quick tutorial, we’re going to focus on the Servlet 3 support for async requests, and how Spring MVC and Spring Security handle these. The most basic motivation for...
View ArticleJava Web Weekly, Issue 158
1. Spring and Java >> Introducing Kotlin support in Spring Framework 5.0 [spring.io] Very cool news – Kotlin is coming to Spring 5. >> Your Brilliant Java Career [javaspecialists.eu] A...
View ArticleDijkstra Algorithm in Java
1. Overview The emphasis in this article is the shortest path problem (SPP), being one of the fundamental theoretic problems known in graph theory, and how the Dijkstra algorithm can be used to solve...
View Article