REST-assured Support for Spring MockMvc 1. Introduction In this tutorial, we’re going to learn how to test our Spring REST Controllers using RestAssuredMockMvc, a REST-assured API built on top of Spring’s MockMvc. First, we’ll examine the different setup options. Then, we’ll dive into how to write both unit and integration… Continue Reading spring-mock-mvc-rest-assured

Spring Properties File Outside jar 1. Overview Property files are a common method that we can use to store project-specific information. Ideally, we should keep it external to the packaging to be able to make changes to the configuration as and when required. In this quick tutorial, we’ll look into… Continue Reading spring-properties-file-outside-jar

Spring Security Basic Authentication 1. Overview This tutorial shows how to set up, configure and customize Basic Authentication with Spring. We’re going to built on top of the simple Spring MVC example, and secure the UI of the MVC application with the Basic Auth mechanism provided by Spring Security. 2.… Continue Reading spring-security-basic-authentication

The Traveling Salesman Problem in Java Algorithms 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 The Simulated Annealing algorithm is a heuristic for solving the problems with a large… Continue Reading java-simulated-annealing-for-traveling-salesman

HandlerAdapters in Spring MVC 1. Overview In this article, we’ll focus on the various handler adapters implementations available in the Spring framework. 2. What Is a Handleradapter? The HandlerAdapter is basically an interface which facilitates the handling of HTTP requests in a very flexible manner in Spring MVC. It’s used… Continue Reading spring-mvc-handler-adapters

JIRA REST API Integration 1. Introduction In this article, we’ll have a quick look at how to integrate with the JIRA using its REST API. 2. Maven Dependency The required artifacts can be found in Atlassian’s public Maven repository: <repository> <id>atlassian-public</id> <url>https://packages.atlassian.com/maven/repository/public</url> </repository> Once the repository is added to the… Continue Reading jira-rest-api