Building a Web Application with Spring Boot and Angular 1. Overview Spring Boot and Angular form a powerful tandem that works great for developing web applications with a minimal footprint. In this tutorial, we’ll use Spring Boot for implementing a RESTful backend, and Angular for creating a JavaScript-based frontend. Further… Continue Reading spring-boot-angular-web

Warning: “The type MockitoJUnitRunner is deprecated” 1. Introduction In this quick tutorial, we’ll have a look at one of the warnings we may see when working with the popular testing framework Mockito. Namely, the one referring to the deprecated MockitoJUnitRunner class. We’ll see why this warning happens and how to… Continue Reading mockito-deprecated-mockitojunitrunner

XML-Based Injection in Spring 1. Introduction In this basic tutorial, we’ll learn how to do simple XML-based bean configuration with the Spring Framework. 2. Overview Let’s start by adding Spring’s library dependency in the pom.xml: <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.1.4.RELEASE</version> </dependency> The latest version of the Spring dependency can be found… Continue Reading spring-xml-injection

Returning Image/Media Data with Spring MVC 1. Overview In this tutorial, we’ll illustrate how to return images and other media using the Spring MVC framework. We will discuss several approaches, starting from directly manipulating HttpServletResponse than moving to approaches that benefit from Message Conversion, Content Negotiation and Spring’s Resource abstraction.… Continue Reading spring-mvc-image-media-data